random: various fixes (#4128)

* random.sample: make counts keyword-only

* random: mark positional-only args

* random.triangular: fix type of mode

* random: add randbytes

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-27 22:05:55 -07:00
committed by GitHub
parent eca19f00fb
commit 1c0403cf83
3 changed files with 12 additions and 12 deletions

View File

@@ -166,11 +166,9 @@ profile.Profile.runcall
pwd.getpwnam
pwd.getpwuid
queue.SimpleQueue.__init__
random.Random.getrandbits
random.Random.sample
random.getrandbits
random.sample
random.SystemRandom.getrandbits
secrets.SystemRandom.getstate
secrets.SystemRandom.getrandbits
secrets.compare_digest
signal.sigtimedwait
signal.sigwaitinfo

View File

@@ -381,10 +381,8 @@ pydoc.TextDoc.docother
pydoc.TextDoc.docproperty
pydoc.TextDoc.docroutine
random.Random.randrange
random.Random.triangular
random.SystemRandom.getstate
random.randrange
random.triangular
re.error.__init__
runpy.run_path
sched.Event.__doc__