Replace deprecated random module and crypto:rand_bytes calls
2 files changed