rnd: add gen_key_bytes to generate key from good entropy source