[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

YARQ - Yet Another Random Query


	For some stuff I'm doing, I need to be able to save and restore
the status of the internal random generator that is being used in C. Is
there an equivalent opposite for srandom(unsigned int seed)... that looks

unsigned int get_random();

which returns a value that is the current seed..... This seed could be
then used to reset the RNG back to the original state?

	Yes, I looked at the man pages, initstate and setstate do not
help, there is not getstate !!! :-(((..

   Madhu M Kurup /* Nemo Me Impune Lacessit */ madhu@xxxxxxxxxxx