stacks-network / pybitcoin

A Bitcoin python library for private + public keys, addresses, transactions, & RPC
MIT License
277 stars 117 forks source link

Option to use urandom in `def random_secret_exponent` #70

Open lorien opened 6 years ago

lorien commented 6 years ago

Is it safe to use /dev/urandom in random_secrect_exponent? It provides much more data than /dev/random. The problem is I need to generate 50 wallets at one time and /dev/random is too slow for that. I can make pull request that adds new option to BitcoinPrivateKey constructor to allow to use /dev/urandom instead of default /dev/random.