Aapo Vienamo
de1338787f
COMMON: Fix divide by zero in getRandomNumber()
...
Calling RandomSource::getRandomNumber() results in divide by zero
exception when called with max = 4294967295 as max + 1 overflows to zero
and the subsequent modulus operation causes the exception.
Certain game saves in Bladerunner trigger this.
2021-08-02 13:40:11 +03:00
Vladimir Serbinenko
18626c2e96
COMMON: Add a signed variant of getRandomNumberRng.
...
Useful for generating negative numbers
2020-10-25 01:02:58 +02:00
Johannes Schickel
854e22b38b
COMMON: Make GPL headers consistent in themselves.
2014-02-18 02:39:33 +01:00
Matthew Hoops
4a7e4e5b22
ALL: Don't use EventRecorder at all when not compiled in
2013-07-06 23:54:45 -04:00
Eugene Sandulenko
f59512c47e
RECORDER: Implement Events Recorder
2013-05-17 00:18:09 +03:00
Johannes Schickel
b4d0a8ba66
JANITORIAL: Enforce "} // End of namespace" with a single space after }.
2013-01-26 19:38:02 +01:00
Max Horn
d165292234
COMMON: Remove unused RandomSource destructor, clarify comments, cleanup
2011-05-17 12:23:41 +02:00
Max Horn
fc9b8d2a71
COMMON: Remove auxillary RandomSource constructor
2011-05-17 12:17:28 +02:00
Max Horn
4cbe4ede66
COMMON: Registers RandomSources in constructor with the event recorder
...
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Max Horn
d78dba3bca
COMMON: Move Common::RandomSource to common/random.*
...
svn-id: r48279
2010-03-18 15:07:11 +00:00