| To: | Simon Josefsson <jas@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: re-entrancy of initstate/random/setstate/srandom |
| From: | Stephen Michell <stephen.michell@xxxxxxxxxxxx> |
| Date: | Tue, 23 Jun 2009 23:12:38 -0400 |
| Cc: | austin-group-l@xxxxxxxxxxxxx |
| References: | <87y6rir8h6.fsf@mocca.josefsson.org> |
|
They must be reentrant, or rather single threaded or "protected". There
is global state being maintained here (since random is called with no
parameters), but if 2 threads were executing code in random, initstate,
etc. and weren't protected than the seed would be corrupted. ...s Simon Josefsson wrote: All, |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: re-entrancy of initstate/random/setstate/srandom, Stephen Michell |
|---|---|
| Next by Date: | Re: re-entrancy of initstate/random/setstate/srandom, Ted Baker |
| Previous by Thread: | Re: re-entrancy of initstate/random/setstate/srandom, Stephen Michell |
| Next by Thread: | xcubug3.txt ERN 1 vs. ERN 10 else_part in shell grammar, Don Cragun |
| Indexes: | [Date] [Thread] [All Lists] |