$ ./lcgrng --help below cmd output started 2025 Sat Jul 19 09:09:01 PM PDT Usage: ./lcgrng --bytes n --seed s above cmd output done 2025 Sat Jul 19 09:09:01 PM PDT dstromberg@tp-mini-c:~/src/home-svn/lcgrng/trunk x86_64-pc-linux-gnu 3933186 $ ./fast-pseudorandom --help below cmd output started 2025 Sat Jul 19 09:09:08 PM PDT Usage: ./fast-pseudorandom [--help] [-seed seed] [--bytes num_bytes] --help Show this help message --seed seed Set the RNG seed --bytes num_bytes Number of bytes to output (must be a multiple of 256 Kilobytes: 262144) This program just writes a seedable stream of pseudorandom characters pretty rapidly, and with a pretty long period. If you need good entropy, you want /dev/random or prngd or something instead. It should have a full 64 bit period, and is relatively fast.
Source |
Rate |
/dev/urandom | 3.4 gigabits/second |
/dev/random | 3.4 gigabits/second |
fast-pseudorandom | 7.2 gigabits/second |
lcgrng | 98.6 megabits/second |
You can e-mail the author with questions or comments: