summaryrefslogtreecommitdiff
path: root/src/velocity.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/velocity.cc')
-rw-r--r--src/velocity.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/velocity.cc b/src/velocity.cc
index c8faa32..2d9bf8f 100644
--- a/src/velocity.cc
+++ b/src/velocity.cc
@@ -28,10 +28,11 @@
#include <stdlib.h>
-Velocity::Velocity(unsigned int lower, unsigned int upper)
+Velocity::Velocity(unsigned int lower, unsigned int upper, Random& rand)
: lower{lower}
, upper{upper}
, samples{}
+ , rand(rand)
{
}