Merge "init.rc: mix device-specific data into the Linux RNG"
am: e04b60d2b9
* commit 'e04b60d2b9bf0e6560e3cde6f671f294b796fcdb':
init.rc: mix device-specific data into the Linux RNG
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 15928f8..47f5dbe 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -28,6 +28,10 @@
on init
sysclktz 0
+ # Mix device-specific information into the entropy pool
+ copy /proc/cmdline /dev/urandom
+ copy /default.prop /dev/urandom
+
# Backward compatibility.
symlink /system/etc /etc
symlink /sys/kernel/debug /d