URL:
<http://gna.org/bugs/?20567>
Summary: Lua random() not really random
Project: Freeciv
Submitted by: cazfi
Submitted on: Wed 27 Feb 2013 09:30:30 AM EET
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release:
Discussion Lock: Any
Operating System: None
Planned Release:
_______________________________________________________
Details:
Noticed in bug #20543. Supposedly random() values in lua script give same
result in every game.
api_utilities_random() seems unnecessarily complicated. If fc_rand() works as
it should, shouldn't "min + fc_rand(max + 1 - min)" be sufficient here?
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?20567>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev