diff options
Diffstat (limited to 'src/stable/randombasic.h')
| -rw-r--r-- | src/stable/randombasic.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/stable/randombasic.h b/src/stable/randombasic.h new file mode 100644 index 0000000..a53e16f --- /dev/null +++ b/src/stable/randombasic.h | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2007-2012 Xagasoft, All rights reserved. | ||
| 3 | * | ||
| 4 | * This file is part of the libbu++ library and is released under the | ||
| 5 | * terms of the license contained in the file LICENSE. | ||
| 6 | */ | ||
| 7 | #ifndef BU_RANDOM_BASIC_H | ||
| 8 | #define BU_RANDOM_BASIC_H | ||
| 9 | |||
| 10 | #include "bu/randombase.h" | ||
| 11 | |||
| 12 | namespace Bu | ||
| 13 | { | ||
| 14 | class RandomBasic : public RandomBase | ||
| 15 | { | ||
| 16 | public: | ||
| 17 | RandomBasic(); | ||
| 18 | virtual ~RandomBasic(); | ||
| 19 | |||
| 20 | virtual void seed( int32_t iSeed ); | ||
| 21 | |||
| 22 | virtual int32_t rand(); | ||
| 23 | |||
| 24 | private: | ||
| 25 | int64_t a, c, x; | ||
| 26 | }; | ||
| 27 | }; | ||
| 28 | |||
| 29 | #endif | ||
