diff options
author | Filippos Karapetis | 2007-09-02 15:19:20 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-09-02 15:19:20 +0000 |
commit | 7909ce3986d3804ed9d7e1596a2ad750fbc397c9 (patch) | |
tree | b82e5d7c48ea3a9c93a08a9460d5a4ab34312200 | |
parent | 60a6d5aa539f4182a1b39616626d0f74615f791e (diff) | |
download | scummvm-rg350-7909ce3986d3804ed9d7e1596a2ad750fbc397c9.tar.gz scummvm-rg350-7909ce3986d3804ed9d7e1596a2ad750fbc397c9.tar.bz2 scummvm-rg350-7909ce3986d3804ed9d7e1596a2ad750fbc397c9.zip |
Removed rand() and substituted it with Common::RandomSource
svn-id: r28825
-rw-r--r-- | engines/agi/agi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/agi.h b/engines/agi/agi.h index 3cf28b1def..4de8d46d05 100644 --- a/engines/agi/agi.h +++ b/engines/agi/agi.h @@ -1000,7 +1000,7 @@ public: int getSelection(int type); bool waitAnyKeyChoice(); void waitAnyKey(bool anim = false); - int rnd(int hi) { return (rand() % hi + 1); } + int rnd(int hi) { return (_rnd->getRandomNumber(hi) + 1); } // Text void drawStr(int row, int col, int attr, const char *buffer); |