summaryrefslogtreecommitdiff
path: root/src/velocity.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-03-24 00:11:28 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-29 22:18:48 +0200
commit866b09992668f97af063dcd77dc5dd0e3a512b94 (patch)
treedfeffaa3eb1a559d746d04f3fbb7402e74d1b290 /src/velocity.cc
parentefe93864d53f72be4fa4dfe003f0f7578fc558e2 (diff)
New Random class for convenient random number generation.
Diffstat (limited to 'src/velocity.cc')
-rw-r--r--src/velocity.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/velocity.cc b/src/velocity.cc
index 04d0475..0ee00df 100644
--- a/src/velocity.cc
+++ b/src/velocity.cc
@@ -47,7 +47,7 @@ Sample *Velocity::getSample()
{
Sample *sample = NULL;
- float x = (float)rand() / (float)RAND_MAX;
+ float x = rand.floatInRange(0, 1);
float sum = 0.0;
Samples::iterator i = samples.begin();