r5437 - trunk/wooly/python/wooly

tmckay at fedoraproject.org tmckay at fedoraproject.org
Tue Jul 31 02:29:43 UTC 2012


Author: tmckay
Date: 2012-07-31 02:29:42 +0000 (Tue, 31 Jul 2012)
New Revision: 5437

Modified:
   trunk/wooly/python/wooly/util.py
Log:
Add a log message on failure of os.urandom


Modified: trunk/wooly/python/wooly/util.py
===================================================================
--- trunk/wooly/python/wooly/util.py	2012-07-30 17:06:24 UTC (rev 5436)
+++ trunk/wooly/python/wooly/util.py	2012-07-31 02:29:42 UTC (rev 5437)
@@ -39,6 +39,7 @@
         bits = [struct.unpack("=L", os.urandom(4))[0] for x in range(4)]
     except NotImplementedError:
         bits = [random.getrandbits(32) for x in range(4)]
+        log.debug("Wooly: os.urandom raised NotImplementedError")
 
     return "%08x-%08x-%08x-%08x" % (bits[0], bits[1], bits[2], bits[3])
 



More information about the cumin-developers mailing list