Skip to content

Commit

Permalink
Add randbytes()
Browse files Browse the repository at this point in the history
  • Loading branch information
fxrlxrn committed Jun 3, 2023
1 parent e21247d commit 1acfffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pystd/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def getrandbits(k) -> int:


def randbytes(n: int) -> bytes:
...
return bytes(map(lambda _: randint(0, 255), range(n)))


def random() -> float:
Expand Down

0 comments on commit 1acfffa

Please sign in to comment.