Skip to content

Instantly share code, notes, and snippets.

@jwilkins
Created July 15, 2013 03:30
Show Gist options
  • Save jwilkins/5997306 to your computer and use it in GitHub Desktop.
Save jwilkins/5997306 to your computer and use it in GitHub Desktop.
effects of low entropy on linux
$ rngtest -c 200000 -b 2000 < /dev/urandom
.....
rngtest: bits received from input: 4000000032
rngtest: FIPS 140-2 successes: 199848
rngtest: FIPS 140-2 failures: 152
rngtest: FIPS 140-2(2001-10-10) Monobit: 24
rngtest: FIPS 140-2(2001-10-10) Poker: 15
rngtest: FIPS 140-2(2001-10-10) Runs: 60
rngtest: FIPS 140-2(2001-10-10) Long run: 54
rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
rngtest: input channel speed: (min=3.782; avg=63.752; max=82.928)Mibits/s
rngtest: FIPS tests speed: (min=4.559; avg=158.909; max=194.627)Mibits/s
rngtest: Program run time: 83882495 microseconds
# only last entry displayed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment