samedi 19 octobre 2019

Is there any random generator library except rand(), which developer can manually set the seed?

I want to verify that if the seed is same, the resulting pseudo random number is same. Using rand() is the simplest but I'm looking for safer way. I found that using device entropy with /dev/random of linux is very reliable but cannot find how to set exact same seed. I also tried cryptgenrandom of window but cannot find the way to set seed. Can I make manual seed with those random generator, which use device things? Or is there any other random generator library which I can set manual seed?




Aucun commentaire:

Enregistrer un commentaire