-
Notifications
You must be signed in to change notification settings - Fork 176
Random Numbers
evoskuil edited this page Dec 11, 2014
·
14 revisions
In SX it was common for a command to invoke an internal Pseudo Random Number Generator. As a weak random number generator can introduce cryptographic weakness this technique has been obsoleted. Any BX command that requires a random number obtains that value as an argument. This places the responsibility of ensuring random number strength on the end-user and also helps them understand the potential for problems.
The "seed" command is provided as a convenience, and is the only command that generates randomness. The seed
command accepts a bit length argument, and has default and minimum value of 128.
$ bx seed 256
e4d28a5972ce0785477f39f58e424c5ef643b26894c50f8e024601f87736b8fe
Users | Developers | License | Copyright © 2011-2024 libbitcoin developers
- Home
- Build BX
- General Information
- Developer Information
- Configuration Settings
- Tutorials
- Meta Commands
- Wallet Commands
- Key Encryption Commands
- Stealth Commands
- Messaging Commands
- Transaction Commands
- Online Commands
- Encoding Commands
- Hash Commands
- Math Commands