Skip to content

Commit

Permalink
Update PointContext.php
Browse files Browse the repository at this point in the history
  • Loading branch information
evalor authored Jul 5, 2019
1 parent e60a50d commit 7d94e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PointContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit 7d94e23

Please sign in to comment.