Mercurial > p > roundup > code
diff roundup/anypy/random_.py @ 6029:adf54478cdaf
flake8 cleanup: whitspeace format changes.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 03 Jan 2020 19:43:25 -0500 |
| parents | 52cb53eedf77 |
| children | 07ce4e4110f5 |
line wrap: on
line diff
--- a/roundup/anypy/random_.py Fri Jan 03 19:42:35 2020 -0500 +++ b/roundup/anypy/random_.py Fri Jan 03 19:43:25 2020 -0500 @@ -1,6 +1,7 @@ try: from secrets import choice, randbelow, token_bytes - def seed(v = None): + + def seed(v=None): pass is_weak = False @@ -10,7 +11,7 @@ # prefer to use SystemRandom if it is available if hasattr(_random, 'SystemRandom'): - def seed(v = None): + def seed(v=None): pass _r = _random.SystemRandom() @@ -18,7 +19,7 @@ else: # don't completely throw away the existing state, but add some # more random state to the existing state - def seed(v = None): + def seed(v=None): import os, time _r.seed((_r.getstate(), v,
