This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: random, srandom, and initstate
On May 31 10:36, Corinna Vinschen wrote:
> On May 19 13:40, Joel Sherrill wrote:
> > (2) Should I go ahead and modify them to be
> > the _r versions and have the non-_r version
> > call those with static variables?
>
> Yes. [...]
Or, maybe not. Full reentrancy would require to have not only a couple
of additional scalar variables in reent, but also to keep the randtbl
array reentrant. That's kind of a lot of stuff.
Jeff, what do you think?
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat