summaryrefslogtreecommitdiff
path: root/include/comphelper/random.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-09 14:48:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-07-10 08:58:20 +0100
commit5b2f8231945fedc46425e00f1234dcac90628c1d (patch)
tree7cdee4b82bd29d59292d0a4bd4df4e816317192c /include/comphelper/random.hxx
parent315afb12853624bdaac553a8528390c3a61c8351 (diff)
add a SAL_RAND_REPEATABLE for repeatable random nums
merge the formula and comphelper ones together Change-Id: I2e7e2cdb176afc6982e384fa1e007da5b914e6f0
Diffstat (limited to 'include/comphelper/random.hxx')
-rw-r--r--include/comphelper/random.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/comphelper/random.hxx b/include/comphelper/random.hxx
index 080b5d246891..218d61683a1c 100644
--- a/include/comphelper/random.hxx
+++ b/include/comphelper/random.hxx
@@ -18,6 +18,9 @@ namespace comphelper
namespace rng
{
+// These functions obey the SAL_RAND_REPEATABLE environment
+// variable: If it is set, use a fixed seed.
+
// note that uniform_int_distribution is inclusive of b, i.e. [a,b] while
// uniform_real_distribution is exclusive of b, i.e. [a,b), std::nextafter may be your friend there