OSSP CVS Repository |
|
On a fast machine, prng_create can return the same number twice. This leads to repeated uuids if one is using different contexts ie. uuid_t objects. The quickest fix would be a microsecond sleep before prng_create returns. If that is indeed the fix, using different contexts will slow down the code, and users should be advised to stick to one context as much as possible.
|
We improved the PRNG and at this point also fixed your issue. Please see the associated CVS commit.
|
Type: code Version: 1.2.0 Status: fixed Created: 2005-Aug-29 18:54 Severity: 1 Last Change: 2005-Aug-30 17:27 Priority: 2 Subsystem: uuid Assigned To: Derived From: Creator: anonymous
2005-Aug-30 17:26 | • | Check-in [5117]: Improve the PRNG in case no stronger system PRNG device is available by passing time and rand(3) based entropy into the MD5 one-way hash function to achieve at least some sort of weaker PRN data. (By rse) |
2000-Jun-12 11:59 | • | Check-in [5]: Fix modules file (By ossp) |
2000-Jun-12 11:46 | • | Check-in [3]: *** empty log message *** (By ossp) |