OSSP CVS Repository

ossp - Ticket #64
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Attach]  [Edit]  [History

Ticket 64: Repeats uuids on fast machines

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.
[Append remarks]

Remarks:

We improved the PRNG and at this point also fixed your issue. Please see the associated CVS commit.
[Append remarks]

Properties:

Type: code           Version: 1.2.0 
Status: fixed          Created: 2005-Aug-29 18:54
Severity:          Last Change: 2005-Aug-30 17:27
Priority:          Subsystem: uuid 
Assigned To:            Derived From:  
Creator: anonymous 

Related Check-ins:

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)

CVSTrac 2.0.1