Commits

dan mackinlay committed 77a1990

don't wreck determinism of system RNG

  • Participants
  • Parent commits 05d85a9

Comments (0)

Files changed (1)

File privateer_pyevolve/lotteries.py

 
 import random  
 from math import sqrt
-DEFAULT_RNG = random.Random()
-
+# DEFAULT_RNG = random.Random(seed=7) - #Don't do this w/out setting a seed or it causes the system RNG to take a new seed from clock.
+DEFAULT_RNG = random
 
 class Lottery(dict):
     """