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