|
|
|
||||||
|
UUID patch for Ice 2.0.0
On all platforms except Windows, IceUtil::generateUUID() uses /dev/urandom to generate UUIDs.
Unfortunately concurrent reads to /dev/urandom on Linux (at least up to 2.6.9smp) can return the same value. I posted a test-case on the linux-kernel mailing list that you could use to check /dev/urandom on your OS: http://www.uwsg.indiana.edu/hypermai...11.3/0875.html http://www.uwsg.indiana.edu/hypermai...12.0/1541.html This bug will be fixed in the next 2.6 release; however until everybody upgrades to a kernel with the fix (which won't be soon) a work-around in IceUtil::generateUUID() is necessary. You can apply the attached patch on a 2.0.0 distribution as follows: $ gunzip patch.gz $ cd $ICE_HOME $ patch -p0 <~/patch It changes the generateUUID() implementation, and improves the UUID test. On Windows, generateUUID() is using the Windows-provided UUID generator, so you don't need this patch. Cheers, Bernard |
|
||||||
|
The underlying /dev/urandom bug is fixed in Linux 2.6.10:
http://www.kernel.org/pub/linux/kern...angeLog-2.6.10 Cheers, Bernard |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Patch for Ice-3.1.0: icegridadmin application patch bug fix | mpugach | Patches | 1 | 08-01-2006 07:26 AM |
| uuid.h not found | Bruce | Help Center | 7 | 02-20-2003 09:57 AM |