Simplify SystemRandom now it subclasses Random, for 2.7 and 3.

This commit is contained in:
Guido van Rossum
2016-01-06 16:29:04 -08:00
parent cb40959116
commit 017f4efa0f
2 changed files with 3 additions and 9 deletions

View File

@@ -40,10 +40,7 @@ class Random(_random.Random):
# SystemRandom is not implemented for all OS's; good on Windows & Linux
class SystemRandom(Random):
def __init__(self, randseed: object = ...) -> None: ...
def random(self) -> float: ...
def getrandbits(self, k: int) -> int: ...
def seed(self, arg: object) -> None: ...
...
# ----- random function stubs -----
def seed(a: Any = ..., version: int = ...) -> None: ...