[Galaxy S II Android Development] mcm811:
rngd test 2nd.

phone's adb shell(or terminal emulator)

my linux shell

rng_test() {
A=$(date +%s%N)
adb shell su -c "qrngtest -d 300"
echo "elapsed(nano sec): $(($(date +%s%N)-$A))"
adb shell su -c "echo -n 'entropy avail: ';cat /proc/sys/kernel/random/entropy_avail"
}

Results:

# 0. no rngd
$ rng_test
qrngtest 1.00b
Copyright (c) 2011, Code Aurora Forum. All rights reserved.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Testing random numbers, one period displayed for every good 8KB read:

Timed out reading data!
elapsed(nano sec): 2085750462
entropy avail: 3

$ rng_test
qrngtest 1.00b
Copyright (c) 2011, Code Aurora Forum. All rights reserved.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Testing random numbers, one period displayed for every good 8KB read:

Timed out reading data!
elapsed(nano sec): 2084924217
entropy avail: 50

# 1. start rngd
$ rng_test
qrngtest 1.00b
Copyright (c) 2011, Code Aurora Forum. All rights reserved.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Testing random numbers, one period displayed for every good 8KB read:
............................................................................................................................................................................................................................................................................................................
Test passed!
elapsed(nano sec): 9087392865
entropy avail: 129

$ rng_test
qrngtest 1.00b
Copyright (c) 2011, Code Aurora Forum. All rights reserved.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Testing random numbers, one period displayed for every good 8KB read:
............................................................................................................................................................................................................................................................................................................
Test passed!
elapsed(nano sec): 9028178687
entropy avail: 2113

# 2. start qrngd
$ rng_test
qrngtest 1.00b
Copyright (c) 2011, Code Aurora Forum. All rights reserved.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Testing random numbers, one period displayed for every good 8KB read:
............................................................................................................................................................................................................................................................................................................
Test passed!
elapsed(nano sec): 8289683788
entropy avail: 128

$ rng_test
qrngtest 1.00b
Copyright (c) 2011, Code Aurora Forum. All rights reserved.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Testing random numbers, one period displayed for every good 8KB read:
............................................................................................................................................................................................................................................................................................................
Test passed!
elapsed(nano sec): 8318195629
entropy avail: 180