Skip to content

Initialize random seed and pseudo-random generator#35

Open
Sinnlosvoll wants to merge 1 commit into
FAForever:SimModfrom
Sinnlosvoll:SimMod
Open

Initialize random seed and pseudo-random generator#35
Sinnlosvoll wants to merge 1 commit into
FAForever:SimModfrom
Sinnlosvoll:SimMod

Conversation

@Sinnlosvoll

Copy link
Copy Markdown

// same PR as 34 just for the simmod branch //
The math.random calls seem to be not random, as we have notices one person is always the phantom.
Searching online this seems to be a problem with luas pseudorandom generator.

references:
https://stackoverflow.com/questions/30641907/lua-5-1-4-math-random-not-actually-random
http://lua-users.org/lists/lua-l/2007-03/msg00564.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant