random, srandom, and initstate

Corinna Vinschen vinschen@redhat.com
Mon May 31 19:16:00 GMT 2010

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 Vinschen
Cygwin Project Co-Leader
Red Hat

More information about the Newlib mailing list