Switch to side-by-side view

--- a/pyforge/pyforge/lib/helpers.py
+++ b/pyforge/pyforge/lib/helpers.py
@@ -134,6 +134,10 @@
 
 def nonce(length=4):
     return sha1(ObjectId().binary + os.urandom(10)).hexdigest()[:length]
+
+def cryptographic_nonce(length=40):
+    hex_format = '%.2x' * length
+    return hex_format % tuple(map(ord, os.urandom(length)))
 
 def ago(start_time):
     """