summaryrefslogtreecommitdiff
path: root/src/stable/randombasic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stable/randombasic.cpp')
-rw-r--r--src/stable/randombasic.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/stable/randombasic.cpp b/src/stable/randombasic.cpp
index e253b70..fe8843b 100644
--- a/src/stable/randombasic.cpp
+++ b/src/stable/randombasic.cpp
@@ -7,10 +7,11 @@
7 7
8#include "bu/randombasic.h" 8#include "bu/randombasic.h"
9 9
10Bu::RandomBasic::RandomBasic() : 10#define a (6364136223846793005ll)
11 a( 6364136223846793005ll ), 11#define c (1442695040888963407ll)
12 c( 1442695040888963407ll ), 12
13 x( 0 ) 13Bu::RandomBasic::RandomBasic( int32_t iSeed ) :
14 x( iSeed )
14{ 15{
15} 16}
16 17
@@ -20,7 +21,7 @@ Bu::RandomBasic::~RandomBasic()
20 21
21void Bu::RandomBasic::seed( int32_t iSeed ) 22void Bu::RandomBasic::seed( int32_t iSeed )
22{ 23{
23 c = iSeed; 24 x = iSeed;
24} 25}
25 26
26int32_t Bu::RandomBasic::rand() 27int32_t Bu::RandomBasic::rand()