random: backport from LK 3.13-rc4

Change-Id: Id61f4e4c3dc1b6e6e266f533c0c2e031384f1e79
Signed-off-by: zwliew <zhaoweiliew@gmail.com>