Changeset 2679

Show
Ignore:
Timestamp:
02/12/06 00:29:52 (19 years ago)
Author:
jerome
Message:

Better UUID generator => caused clashes on fast servers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r2678 r2679  
    3535import md5 
    3636import base64 
     37import random 
     38 
    3739from mx import DateTime 
    3840 
     
    114116           TODO : this one is not unique accross several print servers, but should be sufficient for testing. 
    115117        """ 
    116         return md5.md5("%s" % time.time()).hexdigest() 
     118        return md5.md5("%s-%s" % (time.time(), random.random()).hexdigest() 
    117119         
    118120    def normalizeFields(self, fields) :