Replies: 5 comments 6 replies
-
Technically what is important is not so much the RNG, as its source of entropy, a.k.a its seed. With openssl you can specify your own seed with the -rand option, and in fact in early versions of bitcoin-bash-tools I was generating random bytes with this command :
This is a method I had seen used long time a ago in a Unix manual or something, though I'm not sure as I can't quite recall. I did not invent it anyway. I gave up on it as the openssl man page states that it is not needed anymore :
You could still use it I think. You can throw anything you want in addition to Or you can flip a coin. I'm currently doing it, so far I have produced 24 bytes that I have memorized with a combination of the major system, the PEG system and the method of loci. |
Beta Was this translation helpful? Give feedback.
-
From a recent run of the Synopsis commands,
|
Beta Was this translation helpful? Give feedback.
-
I'm missing something...
|
Beta Was this translation helpful? Give feedback.
-
(ps: stupid bash trick of sudo chmod 600 /dev/*random didn't work for the openssl -rand) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm really nervous about making sure I have a good random number generator.
openssl
https://wiki.openssl.org/index.php/Random_Numbers
raspberry pi, /dev/hwrng
https://raspberrypi.stackexchange.com/questions/61888/how-to-know-if-dev-hwrng-is-working
https://scruss.com/blog/2013/06/07/well-that-was-unexpected-the-raspberry-pis-hardware-random-number-generator/
rng-tools
https://wiki.archlinux.org/title/Rng-tools#Testing_and_usage
Without rngd, the above command will take lots of time to run. With rngd working properly, the result should be almost instantaneous:
It is normal for any random number generator to fail in a small number of tests in 1000 passes, however if the number of failures is too great (like 10), probably there is something wrong.
macos
TODO
windows, wsl/ubuntu terminal
TODO
Beta Was this translation helpful? Give feedback.
All reactions