rngd: implement a method compatible with frandom