summaryrefslogtreecommitdiff
path: root/src/velocity.cc
diff options
context:
space:
mode:
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();