randomize mpn_random

shadeofgray shadeofgray at yandex.ru
Mon Oct 30 19:54:05 CET 2006


Anybody knows how to "randomize" the mpn_random? Every time my program starts it generates the same sequence of "random" numbers.

I know about high-level functions (gmp_randseed, gmp_randseed_ui) but I can't use them with low-level function mpn_random because there is no parameter of gmp_randstate_t type.

P.S. Sorry for my English.

More information about the gmp-discuss mailing list