Gu you are our man thanks once again...i il post when I go to pc to test
Sent from my LT18i using xda premium
---------- Post added at 04:48 PM ---------- Previous post was at 03:51 PM ----------
Gu I put the frantom in to initd what job it does?
Sent from my LT18i using xda premium
It keeps entropy fast and full...
Test: /dev/random
Code:
root@android:/dev # dd if=random of=null bs=1M count=3
dd if=random of=null bs=1M count=3
0+3 records in
0+3 records out
384 bytes (384B) copied, 0.000579 seconds, 647.7KB/s
root@android:/dev # dd if=random of=null bs=1M count=1
dd if=random of=null bs=1M count=1
0+1 records in
0+1 records out
128 bytes (128B) copied, 28.720093 seconds, 4B/s
....on second run when entropy is empy we see a real speed of random, 4B/s i.e SLOW
Test: /dev/urandom
Code:
root@android:/dev # dd if=urandom of=null bs=1M count=32
dd if=urandom of=null bs=1M count=32
32+0 records in
32+0 records out
33554432 bytes (32.0MB) copied, 27.944611 seconds, 1.1MB/s
Test: /dev/frandom
Code:
root@android:/dev # dd if=frandom of=null bs=1M count=128
dd if=frandom of=null bs=1M count=128
128+0 records in
128+0 records out
134217728 bytes (128.0MB) copied, 5.207428 seconds, 24.6MB/s
root@android:/dev # dd if=frandom of=null bs=1M count=512
dd if=frandom of=null bs=1M count=512
512+0 records in
512+0 records out
536870912 bytes (512.0MB) copied, 20.932007 seconds, 24.5MB/s
What 20frandom script does is forcing android to use frandom instead random and urandom...
Test of random and urandom after running script (you don't need to run it manually it executes on boot if put in init.d):
Code:
root@android:/dev # /system/etc/init.d/20frandom
/system/etc/init.d/20frandom
root@android:/dev # dd if=random of=/dev/null bs=1M count=64
dd if=random of=/dev/null bs=1M count=64
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 2.818756 seconds, 22.7MB/s
root@android:/dev # dd if=urandom of=/dev/null bs=1M count=64
dd if=urandom of=/dev/null bs=1M count=64
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 2.673767 seconds, 23.9MB/s
From test we see android system uses frandom instead random and urandom....