Add frandom support

Change-Id: I8ce00defb2ad1146273478c67b1b67ff6dbb4226