Westlin Peter wrote:

Hi!
Can I trust that SomeBeanUtil.generateGUID(...) always returns a unique number? What if to calls occur at the exact same millisecond?
If I look at the generated code there is only one row that maybe could ensure that this is the case and that row is:
int node = seeder.nextInt();
I have never used RandomSecure before so is this line lines that "does it" or is it some other piece of code?
yes of course, with this single line of code you have 1/1000000000 to have the ID , moreover handling 2 IDs in the same ms
is a challenge!!!
so I think you can trust this piece of code (I think it's based on a famous article available on theserverSide.com dealing about GUIDs isn't it ?)

regards
Jerome



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


Reply via email to