aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/stable/randombase.h9
-rw-r--r--src/stable/randomcmwc.h6
-rw-r--r--src/stable/randomsystem.h10
-rw-r--r--src/unit/string.unit2
4 files changed, 26 insertions, 1 deletions
diff --git a/src/stable/randombase.h b/src/stable/randombase.h
index 946284f..953ccb8 100644
--- a/src/stable/randombase.h
+++ b/src/stable/randombase.h
@@ -11,6 +11,15 @@
11 11
12namespace Bu 12namespace Bu
13{ 13{
14 /**
15 * Base class for random number generators. This provides some basic
16 * implementations of standard helper functions. If your specific random
17 * number generator does not use the full range of a 32 bit integer then
18 * you'll want to override at least randNorm() to correct the range.
19 *
20 * Random number generators are not thread safe on their own. See
21 * Bu::Random.
22 */
14 class RandomBase 23 class RandomBase
15 { 24 {
16 public: 25 public:
diff --git a/src/stable/randomcmwc.h b/src/stable/randomcmwc.h
index 50eb8c4..2e0b0e8 100644
--- a/src/stable/randomcmwc.h
+++ b/src/stable/randomcmwc.h
@@ -11,6 +11,12 @@
11 11
12namespace Bu 12namespace Bu
13{ 13{
14 /**
15 * Complimentary Multiply With Carry random number generator. This is a
16 * simpler and faster generator than Mersenne Twister, but uses about as
17 * much memory. Many people think that it may be at least as good as
18 * Mersenne Twister, or better.
19 */
14 class RandomCmwc : public RandomBase 20 class RandomCmwc : public RandomBase
15 { 21 {
16 public: 22 public:
diff --git a/src/stable/randomsystem.h b/src/stable/randomsystem.h
index 63b40f3..6692e58 100644
--- a/src/stable/randomsystem.h
+++ b/src/stable/randomsystem.h
@@ -12,6 +12,16 @@
12namespace Bu 12namespace Bu
13{ 13{
14 class File; 14 class File;
15 /**
16 * Access to operating system provided random number generation. On linux
17 * this will provide access to /dev/random or /dev/urandom depending on
18 * weather Fast or Good is selected. On Linux systems Good random number
19 * generation can block while organic sources are use to gather entropy, so
20 * Fast is the default, it will always provide a result.
21 *
22 * On Windows this uses the Windows system cryptographic level random number
23 * generation services. Or at least, it will when I get to it. Sorry.
24 */
15 class RandomSystem : public RandomBase 25 class RandomSystem : public RandomBase
16 { 26 {
17 public: 27 public:
diff --git a/src/unit/string.unit b/src/unit/string.unit
index ddd89a6..d7cc0c4 100644
--- a/src/unit/string.unit
+++ b/src/unit/string.unit
@@ -584,7 +584,7 @@ suite String
584 584
585 test format2 585 test format2
586 { 586 {
587 unitTest( Bu::String("0x%{1}00").arg( 75, Bu::Fmt::hex() ).end() == "0x4B00" ); 587 unitTest( Bu::String("0x%{1}00").arg( 75, Bu::Fmt::hex() ).end() == "0x4b00" );
588 } 588 }
589} 589}
590// 03F09CA4F58AC8CA0E80F0D9D409D0A60700A192270004BC3A99E91D0001034F544603362E35013103313130019CA4F58AC8CA0E0002830800002C4200008AC200EBF7D9D4090127BB010000E3 590// 03F09CA4F58AC8CA0E80F0D9D409D0A60700A192270004BC3A99E91D0001034F544603362E35013103313130019CA4F58AC8CA0E0002830800002C4200008AC200EBF7D9D4090127BB010000E3