You can use /dev/urandom as a safe cryptographic random number generator. The following reads 32 bytes (256 bits) through the random number generator and formats it as one hex string. Subscribe to our e-newsletter for more content articles and guides on Ethereum. Should you have any comments, sense free to https://tokenaddress.org