Generate random bytes with Ruby
# Nothing to require
# You can define your seed or generate one using system random function
seed = srand
prng = Random.new(seed)
# Generate X bytes
X = 16
bin_str = prng.bytes(X)
# Get the hexadecimal string
hex_str = bin_str.unpack('H*')[0]