summaryrefslogtreecommitdiff
path: root/services/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-02-05 14:06:08 -0800
committerElliott Hughes <enh@google.com>2021-02-05 14:10:50 -0800
commit27f76dbf6f7caaf4971ff9c99eb57294ba26830d (patch)
treec3f85baefc5ae596a960ec38e21ec0f912973bea /services/tests
parentddaf56436526f6cb703cab44621104266e60b88b (diff)
Stop manually mixing /dev/hw_random.
The kernel has been doing this itself since 2014. We still want the rest of this code, though, both for devices without a hw_random device but also to transfer entropy from one boot to the next (as described on the man page, the link to which I've updated to avoid a redirect). Also reorder includes to satisfy the upload hook. Bug: http://b/179086242 Test: treehugger Change-Id: I68ac8e04191b71339708b18eee646a2d65063fd5
Diffstat (limited to 'services/tests')
-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 50e7a0395a2a..58d6dae1637a 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(), "/dev/null");
+ new EntropyMixer(getContext(), "/dev/null", file.getCanonicalPath());
assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0);
}