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

Method test_autoseed

Lib/test/test_random.py:612–614  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

610 gen = random.SystemRandom()
611
612 def test_autoseed(self):
613 # Doesn't need to do anything except not fail
614 self.gen.seed()
615
616 def test_saverestore(self):
617 self.assertRaises(NotImplementedError, self.gen.getstate)

Callers

nothing calls this directly

Calls 1

seedMethod · 0.45

Tested by

no test coverage detected