1. mirror
  2. cpython

Commits

Raymond Hettinger  committed c546426 Merge

merge

  • Participants
  • Parent commits bdf94b2, c203df9
  • Branches default

Comments (0)

Files changed (2)

File Lib/random.py

View file
  • Ignore whitespace
 
         if a is None:
             try:
-                a = int.from_bytes(_urandom(32), 'big')
+                # Seed with enough bytes to span the 19937 bit
+                # state space for the Mersenne Twister
+                a = int.from_bytes(_urandom(2500), 'big')
             except NotImplementedError:
                 import time
                 a = int(time.time() * 256) # use fractional seconds

File Misc/NEWS

  • Ignore whitespace
File contents unchanged.