[Bug 46273] rand() doesn' t get a unique state per-fiber like it appears to on native windows

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Dec 11 13:28:00 CST 2018


https://bugs.winehq.org/show_bug.cgi?id=46273

Nikolay Sivov <bunglehead at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #4 from Nikolay Sivov <bunglehead at gmail.com> ---
(In reply to joaopa from comment #3)
> As already said, what is the purpose to test wit such an old version of wine?
> Test with wine-4.0-rc1.

And now you can try it yourself with attached test program.

(In reply to winebz from comment #2)
> Created attachment 62984 [details]
> rand() from fibers test program
> 
> This program creates 100 fibers and waits for their exit.
> 
> The fibers all execute the same function, in pseudo-code:
> {
>         print(rand())
>         sleep_schedule_others(1s)
>         print(rand())
> }
> 
> In WINE 1.8.7, I observe all the fibers printing random numbers.
> 
> In Win7, I observe 100 of the same random number, a delay, then 100 of
> another uniform random number.

Yes, I can confirm.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list