Hi Suran,

I think that you have successfully created an identifier which no-one else will recreate using Derby's UUID generator. That's all you need to do.

Cheers,
-Rick

Suran Jayathilaka wrote:
Thanks Francois.

I generated UUIDs using Rick's code snippet with an initial value I changed at random. Is this correct, or should I leave the initial value as it is?

Thanks!
Suran

On Wed, Jun 10, 2009 at 2:00 AM, Francois Orsini <[email protected] <mailto:[email protected]>> wrote:

    Hi Suran,

    As defined in
    
https://svn.apache.org/repos/asf/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/uuid/BasicUUIDFactory.java

    //          INITIAL_VALUE   =       a number guaranteeing that the first 
couple sequence numbers
    //                                  won't be monotonically increasing.
    ...
    ...
    private     static  final   long    INITIAL_VALUE   =       ( 2551218188L );


    ...
    ...

    FYI,

    --francois


    On Tue, Jun 9, 2009 at 1:12 PM, Suran Jayathilaka
    <[email protected] <mailto:[email protected]>> wrote:

        Thanks Rick. That did the trick. The 3rd argument is a random
        Long, is it not?




Reply via email to