23e3a2e8fc
- Replace usages of keygen and bin2hex(random_bytes()) with this function.
- Replace usages of keygen and bin2hex(random_bytes()) with this function.