[haiku-bugs] Re: [Haiku] #14937: Tiny chunks of entropy from /dev/urandom

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Fri, 21 Feb 2020 02:25:42 -0000

#14937: Tiny chunks of entropy from /dev/urandom
-------------------------+----------------------------
   Reporter:  kallisti5  |      Owner:  nobody
       Type:  bug        |     Status:  new
   Priority:  normal     |  Milestone:  Unscheduled
  Component:  Drivers    |    Version:  R1/Development
 Resolution:             |   Keywords:  urandom
 Blocked By:             |   Blocking:
Has a Patch:  0          |   Platform:  All
-------------------------+----------------------------
Comment (by kallisti5):

 rng-tools offers some neat test programs for random sources of data's...
 randomness.

 Here are a few examples from my linux machine...

 {{{
 [root@eris ~]# cat /dev/hwrng | rngtest -t 10
 rngtest 6.9
 Copyright (c) 2004 by Henrique de Moraes Holschuh
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.

 rngtest: starting FIPS tests...
 rngtest: bits received from input: 500040032
 rngtest: FIPS 140-2 successes: 24987
 rngtest: FIPS 140-2 failures: 15
 rngtest: FIPS 140-2(2001-10-10) Monobit: 0
 rngtest: FIPS 140-2(2001-10-10) Poker: 3
 rngtest: FIPS 140-2(2001-10-10) Runs: 7
 rngtest: FIPS 140-2(2001-10-10) Long run: 5
 rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
 rngtest: input channel speed: (min=992.744; avg=71153.961;
 max=19531250.000)Kibits/s
 rngtest: FIPS tests speed: (min=58.869; avg=152.150; max=185.179)Mibits/s
 rngtest: Program run time: 10016917 microseconds
 }}}


 {{{
 [root@eris ~]# cat /dev/random | rngtest -t 10
 rngtest 6.9
 Copyright (c) 2004 by Henrique de Moraes Holschuh
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.

 rngtest: starting FIPS tests...
 rngtest: bits received from input: 72700032
 rngtest: FIPS 140-2 successes: 3632
 rngtest: FIPS 140-2 failures: 3
 rngtest: FIPS 140-2(2001-10-10) Monobit: 1
 rngtest: FIPS 140-2(2001-10-10) Poker: 1
 rngtest: FIPS 140-2(2001-10-10) Runs: 1
 rngtest: FIPS 140-2(2001-10-10) Long run: 0
 rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
 rngtest: input channel speed: (min=2.064; avg=7.433; max=8.504)Mibits/s
 rngtest: FIPS tests speed: (min=56.936; avg=103.244; max=183.399)Mibits/s
 rngtest: Program run time: 10000423 microseconds
 }}}

 {{{
 [root@eris ~]# cat /dev/urandom | rngtest -t 10
 rngtest 6.9
 Copyright (c) 2004 by Henrique de Moraes Holschuh
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.

 rngtest: starting FIPS tests...
 rngtest: bits received from input: 1788660032
 rngtest: FIPS 140-2 successes: 89373
 rngtest: FIPS 140-2 failures: 60
 rngtest: FIPS 140-2(2001-10-10) Monobit: 9
 rngtest: FIPS 140-2(2001-10-10) Poker: 12
 rngtest: FIPS 140-2(2001-10-10) Runs: 18
 rngtest: FIPS 140-2(2001-10-10) Long run: 21
 rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
 rngtest: input channel speed: (min=476.837; avg=20203.708;
 max=19073.486)Mibits/s
 rngtest: FIPS tests speed: (min=68.857; avg=172.168; max=185.179)Mibits/s
 rngtest: Program run time: 10001792 microseconds
 }}}

 And my TrueRNG USB dongle.
 {{{
 [root@eris ~]# cat /dev/TrueRNG | rngtest -t 10
 rngtest 6.9
 Copyright (c) 2004 by Henrique de Moraes Holschuh
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.

 rngtest: starting FIPS tests...
 rngtest: bits received from input: 3360032
 rngtest: FIPS 140-2 successes: 168
 rngtest: FIPS 140-2 failures: 0
 rngtest: FIPS 140-2(2001-10-10) Monobit: 0
 rngtest: FIPS 140-2(2001-10-10) Poker: 0
 rngtest: FIPS 140-2(2001-10-10) Runs: 0
 rngtest: FIPS 140-2(2001-10-10) Long run: 0
 rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
 rngtest: input channel speed: (min=325.570; avg=329.150;
 max=335.508)Kibits/s
 rngtest: FIPS tests speed: (min=70.905; avg=97.157; max=174.986)Mibits/s
 rngtest: Program run time: 10003878 microseconds
 }}}
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14937#comment:5>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: