MCPcopy Index your code
hub / github.com/python/cpython / MySeed

Class MySeed

Lib/test/test_random.py:55–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 def test_seedargs(self):
54 # Seed value with a negative hash.
55 class MySeed(object):
56 def __hash__(self):
57 return -1729
58 for arg in [None, 0, 1, -1, 10**20, -(10**20),
59 False, True, 3.14, 'a']:
60 self.gen.seed(arg)

Callers 1

test_seedargsMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_seedargsMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…