jerdog · Jan 4, 2013 at 12:00 pm

Entropy Seed Generator Not All It’s Hacked Up to Be

Contrary to what many may think, what we report on is not always perfect. While we get many things right and have a great group of developers who continually stretch devices to heights, sometimes we highlight solutions with unknown gains. A recent article we published on a hack for gaming on the Nexus 7 and other devices is one such example.

The premise of the hack is that you can reduce lag by keeping a section of the Android file system (/dev/random) full of random bits so that the system does not have to wait for the file system to generate them. In theory that sounds great, and has shown some success in certain areas where lag was obvious, but it presents all sorts of other problems.

It is for those concerns that we do not recommend using this fix. The fix itself in no way causes harm, and is near-placebo in its effects. CyanogenMod developer arcee posted information on the fix, stating that

The only users of /dev/random are libcrypto (used for cryptographic operations like SSL connections, ssh key generation, and so on), wpa_supplicant/hostapd (to generate WEP/WPA keys while in AP mode), and the libraries that generate random partition IDs when you do an ext2/3/4 format. None of those 3 users are in the path of app execution, so feeding random from urandom does nothing except make random… well… less random

There are valid concerns about lag and how the Android OS handles them, and there is discussion currently ongoing within the Android Code about this, but this fix does not address those issues and instead gives performance gains through boosting CPU speed. The developer himself stated that this could in effect reduce battery life, since the hack is waking the CPU every second.

As is always the case, anything you use here on XDA is done at your own risk, and you assume all liability for your actions. That said, there are times we pass on inaccurate information, and this is one of those times. We do applaud all of our developers for working to find fixes for the things that nag at them. However, we jumped the gun on this, without letting adequate discussion and testing take place.

[Image adapted from /dev/urandom thoughts.]
_________
Want something on the XDA Portal? Send us a tip!
TAGS:
GermainZ · Mar 5, 2015 at 01:50 pm · no comments

HTC to Replace Swype with TouchPal

According to engadget (citing TouchPal as well as an internal source), HTC aims to replace Swype with TouchPal as the default input method in upcoming devices, including the new HTC One M9. The official TouchPal Twitter account also tweeted the engadget article about this, further confirming the move. What prompted this move? The CEO of CooTek, the company behind TouchPal, says it's because of their better contextual prediction and language support. If you actually look at the supported languages, you'll...

XDA NEWS
Emil Kako · Mar 5, 2015 at 12:10 pm · no comments

Do You Think the Apple Watch Will Be a Huge Success?

Many people are under the impression that once Apple finally launches its smartwatch, the market for wearables will suddenly become mainstream and be taken to the next level. Taking an idea that already exists and making it incredibly successful isn't something new to Apple, but does the Apple Watch have what it takes? The wearable hasn't even shipped yet, but has already won multiple awards and has been featured on numerous fashion magazine covers. Do you think the Apple Watch will be a huge success? Let us know your thoughts.

DISCUSS
Mario Tomás Serrafero · Mar 5, 2015 at 10:09 am · no comments

Huawei: A Giant the Western World Should Look Out For

The smartphone landscape is drastically changing its focus. What was once a North-America-centric monopoly of high-specification phones is now merely an afterimage of the past. The meat of the game is elsewhere now; emerging markets looking for good bang-for-buck are what OEMs are increasingly aiming towards, and in this new game the old players must adapt-or-die. Xiaomi has grown at one of the most notable rates in the industry, leading it to become the world's most valuable start-up; and its...

XDA NEWS
Share This