[Rivet-svn] rivet: Moar randomness

Rivet Mercurial rivet at projects.hepforge.org
Fri Jun 30 15:15:01 BST 2017


details:   https://rivet.hepforge.org/hg/rivet/rev/64dabebc9790
branches:  
changeset: 5940:64dabebc9790
user:      Andy Buckley <andy at insectnation.org>
date:      Fri Jun 30 15:04:06 2017 +0100
description:
Moar randomness

diffs (11 lines):

--- a/src/Tools/Random.cc	Thu Jun 29 22:23:06 2017 +0100
+++ b/src/Tools/Random.cc	Fri Jun 30 15:04:06 2017 +0100
@@ -31,7 +31,7 @@
   // Return a uniformly sampled random number between 0 and 1
   double rand01() {
     // return rand() / (double)RAND_MAX;
-    return generate_canonical<double, 10>(rng());
+    return generate_canonical<double, 32>(rng()); ///< @todo What's the "correct" number of bits of randomness?
   }
 
 


More information about the Rivet-svn mailing list