samedi 23 avril 2016

Erlang generate random binary

What is the most efficient way to generate a random binary object given a number of bits? I understand that the crypto:rand_bytes function would be an option, but the bit count must not necessarily be a multiply of 8. Thanks!




Aucun commentaire:

Enregistrer un commentaire