summaryrefslogtreecommitdiffstats
path: root/services/tests/servicestests/src
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2013-10-03 13:23:13 -0700
committerAlex Klyubin <klyubin@google.com>2013-10-03 15:07:37 -0700
commit6ab3d20d3c2de01a342450d83103e9f5e89e670e (patch)
tree49fd38c7387041ee8a3c127db75c8aa76241519e /services/tests/servicestests/src
parent1a07229bc2042676c866051938ebe35d9cded900 (diff)
downloadframeworks_base-6ab3d20d3c2de01a342450d83103e9f5e89e670e.zip
frameworks_base-6ab3d20d3c2de01a342450d83103e9f5e89e670e.tar.gz
frameworks_base-6ab3d20d3c2de01a342450d83103e9f5e89e670e.tar.bz2
Make EntropyMixer mix in output of Hardware RNG into Linux RNG.
On devices with Hardware RNG (HW RNG), this makes EntropyMixer periodically (every three hours) read 512 bytes from HW RNG and mix them into the Linux RNG. This is done without increasing Linux RNG's entropy estimates to avoid having to trust the quality of the HW RNG. This approach cannot reduce the quality of the Linux RNG output, but may increase it. Change-Id: Ifde851004301ffd41b2189151a64a0c5989c630f
Diffstat (limited to 'services/tests/servicestests/src')
-rw-r--r--services/tests/servicestests/src/com/android/server/EntropyMixerTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/tests/servicestests/src/com/android/server/EntropyMixerTest.java b/services/tests/servicestests/src/com/android/server/EntropyMixerTest.java
index 58d6dae..50e7a03 100644
--- a/services/tests/servicestests/src/com/android/server/EntropyMixerTest.java
+++ b/services/tests/servicestests/src/com/android/server/EntropyMixerTest.java
@@ -34,7 +34,7 @@ public class EntropyMixerTest extends AndroidTestCase {
assertEquals(0, FileUtils.readTextFile(file, 0, null).length());
// The constructor has the side effect of writing to file
- new EntropyMixer(getContext(), "/dev/null", file.getCanonicalPath());
+ new EntropyMixer(getContext(), "/dev/null", file.getCanonicalPath(), "/dev/null");
assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0);
}