aboutsummaryrefslogtreecommitdiff
path: root/src/stable/randombasic.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-05 22:41:51 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-05 22:41:51 +0000
commitec05778d5718a7912e506764d443a78d6a6179e3 (patch)
tree78a9a01532180030c095acefc45763f07c14edb8 /src/stable/randombasic.cpp
parentb20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff)
downloadlibbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip
Converted tabs to spaces with tabconv.
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