Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
# test random.seed() without any arguments
try:
import random
except ImportError:
print("SKIP")
raise SystemExit
random.seed()
except ValueError:
# no default seed on this platform
def rng_seq():
return [random.getrandbits(16) for _ in range(10)]
# seed with default and check that doesn't produce the same RNG sequence
seq = rng_seq()
print(seq == rng_seq())
random.seed(None)