db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suran Jayathilaka <suran...@gmail.com>
Subject Re: Generating UUIDs
Date Wed, 10 Jun 2009 04:57:32 GMT
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
<francois.orsini@gmail.com>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 <suranjay@gmail.com>wrote:
>
>> Thanks Rick. That did the trick. The 3rd argument is a random Long, is it
>> not?
>>
>>
>

Mime
View raw message