OSDN Git Service

fix initstate to make the state buffer usable in setstate
authorSzabolcs Nagy <nsz@port70.net>
Tue, 21 Jan 2014 01:01:35 +0000 (02:01 +0100)
committerSzabolcs Nagy <nsz@port70.net>
Tue, 21 Jan 2014 01:01:35 +0000 (02:01 +0100)
commit1569f396bb76e9d54f6c4492ed6778e37b87bc70
tree7e96d36129e0e78e5aec32d80901264117d2623d
parent7cbb6f70c8fe711644ec0dbede1973cc6641a283
fix initstate to make the state buffer usable in setstate

setstate could use the results of previous initstate or setstate
calls (they return the old state buffer), but the documentation
requires that an initialized state buffer should be possible to
use in setstate immediately, which means that initstate should
save the generator parameters in it.

I also removed the copyright notice since it is present in the
copyright file.
src/prng/random.c