Commit f3310313 authored by hybrid's avatar hybrid

Allow seed value in Randomizer::reset

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3863 dfc29bdd-3216-0410-991c-e03cc46cb475
parent dde320c4
...@@ -222,9 +222,9 @@ namespace os ...@@ -222,9 +222,9 @@ namespace os
} }
//! resets the randomizer //! resets the randomizer
void Randomizer::reset() void Randomizer::reset(s32 value)
{ {
seed = 0x0f0f0f0f; seed = value;
} }
......
...@@ -51,7 +51,7 @@ namespace os ...@@ -51,7 +51,7 @@ namespace os
public: public:
//! resets the randomizer //! resets the randomizer
static void reset(); static void reset(s32 value=0x0f0f0f0f);
//! generates a pseudo random number in the range 0..randMax() //! generates a pseudo random number in the range 0..randMax()
static s32 rand(); static s32 rand();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment