https://bugzilla.wikimedia.org/show_bug.cgi?id=62291

Brad Jorsch <bjor...@wikimedia.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |easy

--- Comment #1 from Brad Jorsch <bjor...@wikimedia.org> ---
Since math.random is supposed to be an interface to the C rand() function,[1]
and that function is explicitly defined as being seeded with 1 if srand
(math.randomseed) hasn't been called,[2] I'd suggest fixing this by calling
math.randomseed( 1 ) at the top of mw.executeFunction() (in
engines/LuaCommon/lualib/mw.lua).

If no one objects in a reasonable period of time (and no one beats me to it),
I'll submit a Gerrit change to do this at some point in the not-too-distant
future.

 [1]: http://www.lua.org/manual/5.1/manual.html#pdf-math.random
 [2]:
http://manpages.debian.net/cgi-bin/man.cgi?query=rand&sektion=3&format=html

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to