1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2025-02-16 17:42:06 +00:00

Errata 166266

This commit is contained in:
Andreas M. Antonopoulos 2018-03-14 10:23:46 -06:00
parent dcdc470a1a
commit 7ed95b283b

View File

@ -23,7 +23,7 @@ def random_secret():
convert_to_int = lambda array: int("".join(array).encode("hex"), 16) convert_to_int = lambda array: int("".join(array).encode("hex"), 16)
# Collect 256 bits of random data from the OS's cryptographically secure # Collect 256 bits of random data from the OS's cryptographically secure
# random generator # random number generator
byte_array = os.urandom(32) byte_array = os.urandom(32)
return convert_to_int(byte_array) return convert_to_int(byte_array)