Remove All Ads from XDA
Find Your Device:
Or Continue to Thread: [APK] Seeder 2.0.0 entropy gen…
3rd January 2013, 03:37 PM |#331  
Tungstwenty's Avatar
Senior Member
Thanks Meter: 4,508
Donate to Me
Here's a quick way to test if the lack of entropy (whatever the available value is) produces lag or not, WITHOUT having a process running each second - to increase entropy or to measure it - which some might argue might affect the CPU throttling:

- boot normally without any /dev/random modification active
- use if for a while to "let it settle" and get the feeling of the speed
- in a terminal or adb shell, temporarily point the /dev/random device to /dev/urandom, which doesn't block at all:
mv /dev/random /dev/random_ori; ln -s /dev/urandom /dev/random
- use it from then on for a while and see if it makes any real difference
- after testing, simply reboot the device to have everything as before or run this in the terminal:
rm /dev/random; mv /dev/random_ori /dev/random
With the symbolic link there will be no active code feeding entropy into the "random" device and all consumers will be reading from "urandom" instead without any lag.
I don't know whether the code using random data will validate if it's random enough and potentially spending more time calculating random stuff until it's good enough for e.g. SSL, though, so you'll need to interpret the outcome with a grain of salt...
The Following 30 Users Say Thank You to Tungstwenty For This Useful Post: [ View ] Gift Tungstwenty Ad-Free