-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
What steps will reproduce the problem?
1. OP generate duplicate assoc_handle on multi-thread
2.
3.
What is the expected output? What do you see instead?
generate unique assoc_handle.
What version of the product are you using? On what operating system?
joid-1.0.2 on Linux 2.6.9
Please provide any additional information below.
org.apache.tsik.uuid.UUID's generate() is not thread-safe,
Crypt's generateHandle() should be synchroinized.
Crypt.java:
synchronized public static String generateHandle()
{
return UUID.generate().toString();
}
tsik src: http://svn.apache.org/repos/asf/incubator/tsik/
Original issue reported on code.google.com by chimerar...@gmail.com on 28 May 2010 at 4:26