diff --git a/src/PointContext.php b/src/PointContext.php index b574096..924f03a 100644 --- a/src/PointContext.php +++ b/src/PointContext.php @@ -174,10 +174,10 @@ function save(Point $point = null) } if($point && $this->saveHandler){ mt_srand(); - if(mt_srand(0,100) < $this->saveHandler->probability()){ + if(mt_rand(0,100) < $this->saveHandler->probability()){ return $this->saveHandler->save($point,$this->getGlobalArg()); } } return null; } -} \ No newline at end of file +}