Closed tcld closed 8 years ago
Looks good to me. @tcld thank you, you are doing a lot of great work for this project!
Well, this is a really small patch. I compiled an ran it by now, generated some worlds - so far everything seemed to work.
Cool, I think we can merge this one. @psi29a let me know if it is a problem and I will revert it
By the way we should also add you to the contributors in the README. Feel free to open a PR with the desired changes (your name, and the area you worked on, as we did for others contributors)
Should I ever feel that's necessary, I will do that. Thanks. :)
A very small change. I found it very confusing that the parameter "seed=0" resulted in a random seed even though internally 0 is a perfectly valid seed value. Since negative parameters should be equally valid anyway, only cutting out 0 seemed like an oversight.
Also, I changed 65536 to 65535. randint() includes its boundaries, so the former number results in a range of 2^16+1 (and it really looked like it was meant to be 2^16). Extremely minor and unimportant, I guess. But I was already changing the code anyway...