See my other post - the reverse is is just to break the order.

Jim


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of danch (Dan
> Christopherson)
> Sent: Tuesday, June 26, 2001 4:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Key generation by random numbers
> 
> 
> Jim Kimball wrote:
> 
> > If you are looking for a simple unique ID generator that is 
> also (somewhat)
> > evenly distributed, use a reverse timestamp. Use
> > System.getCurrentTimeMillis(), turn it into a string, then 
> reverse it.
> 
> 
> Reverse it so that the LSB becomes MSB? Is that for better hash 
> distribution, or just to break order in the PK index?
> 
> -danch
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to