mercredi 18 mars 2015

How to generate a random number based on a byte array?

Suppose I have an array of bytes from a secure PRNG, and I need to generate a number between 1 and 10 using that data, how would I do that correctly?





Aucun commentaire:

Enregistrer un commentaire