[EMAIL PROTECTED] wrote:

> 
> Yes, but that isn't really a problem because you'll just try again and
> it happens sufficiently rarely that the extra time used is
> insignificant. At least, that would be the theory.


Hmm. Another theory might be that if you run your head into a brick wall 
often enough, you'll break through. Sorry, yes, you _probably_ won't 
collide very often, depending on your seed and the frequency of inserts.

On the other hand, if you're willing to retry and your inserts wont be 
too frequent, why not use currentTimeMillis()? At least then you won't 
collide with one of last month's inserts.

Not that i'd do it that way in a production system.

-danch





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

Reply via email to