diff options
Diffstat (limited to 'src/stable/randomcmwc.cpp')
-rw-r--r-- | src/stable/randomcmwc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stable/randomcmwc.cpp b/src/stable/randomcmwc.cpp index 1d4a913..b1c3cdb 100644 --- a/src/stable/randomcmwc.cpp +++ b/src/stable/randomcmwc.cpp | |||
@@ -11,11 +11,12 @@ | |||
11 | 11 | ||
12 | #define PHI 0x9e3779b9 | 12 | #define PHI 0x9e3779b9 |
13 | 13 | ||
14 | Bu::RandomCmwc::RandomCmwc() : | 14 | Bu::RandomCmwc::RandomCmwc( int32_t iSeed ) : |
15 | q( 0 ), | 15 | q( 0 ), |
16 | c( 362436 ) | 16 | c( 362436 ) |
17 | { | 17 | { |
18 | q = new uint32_t[4096]; | 18 | q = new uint32_t[4096]; |
19 | seed( iSeed ); | ||
19 | } | 20 | } |
20 | 21 | ||
21 | Bu::RandomCmwc::~RandomCmwc() | 22 | Bu::RandomCmwc::~RandomCmwc() |