From 7d94e237dcc84400579d5586f661d41ac35566db Mon Sep 17 00:00:00 2001 From: evalor Date: Fri, 5 Jul 2019 09:50:54 +0800 Subject: [PATCH] Update PointContext.php --- src/PointContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}