http://bugs.winehq.org/show_bug.cgi?id=11100
Summary: %RANDOM% in CMD is anything but Product: Wine Version: unspecified Platform: Other OS/Version: other Status: UNCONFIRMED Severity: trivial Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: karl@qdh.org.uk
It seems that every time I run the following command;
wine cmd.exe /c echo "%RANDOM%"
the returned value is 30836 every time.
http://bugs.winehq.org/show_bug.cgi?id=11100
Hans Leidekker hans@it.vu.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hans@it.vu.nl
--- Comment #1 from Hans Leidekker hans@it.vu.nl 2008-01-09 05:56:08 --- 30836 looks like a random number to me ;) Do you have an app that depends on unpredictable random numbers?
http://bugs.winehq.org/show_bug.cgi?id=11100
--- Comment #2 from Karl Lattimer karl@qdh.org.uk 2008-01-09 05:58:36 --- No I don't, but it seems that having a single same random number, all the time is pretty useless and may cause some difficult to spot bugs.
It shouldn't be that hard to tie this into /dev/random
http://bugs.winehq.org/show_bug.cgi?id=11100
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|-unknown |programs Ever Confirmed|0 |1
--- Comment #3 from Austin English austinenglish@gmail.com 2008-01-09 10:49:42 --- I'm getting 12616. Hmm. Wiping ~/.wine makes no difference, so I'm not sure where it's getting it's data from.
http://bugs.winehq.org/show_bug.cgi?id=11100
Alexander Nicolaysen Sørnes alex@thehandofagony.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alex@thehandofagony.com
--- Comment #4 from Alexander Nicolaysen Sørnes alex@thehandofagony.com 2008-01-09 11:48:41 --- cmd was missing a call to srand() at startup. I'll send a patch. Thanks for reporting it!
http://bugs.winehq.org/show_bug.cgi?id=11100
Alexander Nicolaysen Sørnes alex@thehandofagony.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from Alexander Nicolaysen Sørnes alex@thehandofagony.com 2008-01-10 06:53:53 --- Patch applied.
http://bugs.winehq.org/show_bug.cgi?id=11100
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Dan Kegel dank@kegel.com 2008-01-28 06:13:57 --- Closing all RESOLVED FIXED bugs older than 0.9.54.
http://bugs.winehq.org/show_bug.cgi?id=11100
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|programs |cmd