aboutsummaryrefslogtreecommitdiff
path: root/src/experimental/randomcmwc.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-05-22 16:57:15 +0000
committerMike Buland <eichlan@xagasoft.com>2012-05-22 16:57:15 +0000
commit2295579eb790d6eff6e54e84c01da6de10809a71 (patch)
tree3d8282dedc137fee009f71ff904370537009e504 /src/experimental/randomcmwc.h
parent690ad7280e655654a3bcca2ca5ced9caacf75c8b (diff)
downloadlibbu++-2295579eb790d6eff6e54e84c01da6de10809a71.tar.gz
libbu++-2295579eb790d6eff6e54e84c01da6de10809a71.tar.bz2
libbu++-2295579eb790d6eff6e54e84c01da6de10809a71.tar.xz
libbu++-2295579eb790d6eff6e54e84c01da6de10809a71.zip
Better win_o ignores. The random number system is pretty much together.
We need a few extra helper functions to cover some other good things, like normalized floating point numbers, etc.
Diffstat (limited to '')
-rw-r--r--src/experimental/randomcmwc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/experimental/randomcmwc.h b/src/experimental/randomcmwc.h
index 3a05383..747eb6a 100644
--- a/src/experimental/randomcmwc.h
+++ b/src/experimental/randomcmwc.h
@@ -7,19 +7,19 @@
7#ifndef BU_RANDOM_CMWC_H 7#ifndef BU_RANDOM_CMWC_H
8#define BU_RANDOM_CMWC_H 8#define BU_RANDOM_CMWC_H
9 9
10#include <stdint.h> 10#include "bu/randombase.h"
11 11
12namespace Bu 12namespace Bu
13{ 13{
14 class RandomCmwc 14 class RandomCmwc : public RandomBase
15 { 15 {
16 public: 16 public:
17 RandomCmwc(); 17 RandomCmwc();
18 virtual ~RandomCmwc(); 18 virtual ~RandomCmwc();
19 19
20 void seed( int32_t iSeed ); 20 virtual void seed( int32_t iSeed );
21 21
22 int32_t rand(); 22 virtual int32_t rand();
23 23
24 private: 24 private:
25 uint32_t *q, c; 25 uint32_t *q, c;