[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:19:42 CST 2018
https://bugs.winehq.org/show_bug.cgi?id=46273
--- Comment #2 from winebz at pengaru.com ---
Created attachment 62984
--> https://bugs.winehq.org/attachment.cgi?id=62984
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.
--
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