You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both of these function calls cause kernel errors in jupyterhub, and unlike in the docstring for randbelow_from_randbits, no ValueError is raised if n==0.
I suggest assert n > 0 is added
The text was updated successfully, but these errors were encountered:
r = SHA256(1)
r.randbelow_from_randbits(-1)
r = SHA256(1)
r.randbelow_from_randbits(-1)
Both of these function calls cause kernel errors in jupyterhub, and unlike in the docstring for randbelow_from_randbits, no ValueError is raised if n==0.
I suggest
assert n > 0
is addedThe text was updated successfully, but these errors were encountered: