mercredi 30 mars 2016

128/256 or more Pseudo-Random number generator implementation in C

Is there any library in C that can help me generate streams of random numbers by controlling the state of the random number generator at each generation? Similar to this

=) Rand(Some_Initial_State) --> random number X

=) Rand(X + Some_Variable)  --> random number Y

=> Rand(Y + Some_Variable)  --> ............. etc

Matlab let me do this with rng function, but for maximum of 48-bit numbers, I want a larger scope.

I wasn't able to control the seeding in OpenSSL, if it is possible I prefer OpenSSL.

Any help??




Aucun commentaire:

Enregistrer un commentaire