You should utilize /dev/urandom as a secure cryptographic random number generator. The following reads 32 bytes (256 bits) from the random number generator and formats it as a single hex string. Now that you know how to build, use, and take care of Ethereum addresses, you’re far better Outfitted to https://rareaddress.com