From f331031395c00fcf62bab9e5f0a99de166be7992 Mon Sep 17 00:00:00 2001 From: hybrid Date: Tue, 21 Jun 2011 21:58:59 +0000 Subject: [PATCH] Allow seed value in Randomizer::reset git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3863 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/os.cpp | 4 ++-- source/Irrlicht/os.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Irrlicht/os.cpp b/source/Irrlicht/os.cpp index ed347779..18e15cd9 100644 --- a/source/Irrlicht/os.cpp +++ b/source/Irrlicht/os.cpp @@ -222,9 +222,9 @@ namespace os } //! resets the randomizer - void Randomizer::reset() + void Randomizer::reset(s32 value) { - seed = 0x0f0f0f0f; + seed = value; } diff --git a/source/Irrlicht/os.h b/source/Irrlicht/os.h index 79a0ce01..fa7fb797 100644 --- a/source/Irrlicht/os.h +++ b/source/Irrlicht/os.h @@ -51,7 +51,7 @@ namespace os public: //! resets the randomizer - static void reset(); + static void reset(s32 value=0x0f0f0f0f); //! generates a pseudo random number in the range 0..randMax() static s32 rand();