Verified Commit 6da715cc authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(plugins) Use random_int instead of mt_rand

issue #5836
Showing with 1 addition and 1 deletion
+1 -1
...@@ -131,7 +131,7 @@ class argonautServer extends simpleService ...@@ -131,7 +131,7 @@ class argonautServer extends simpleService
{ {
parent::__construct($dn, $parent); parent::__construct($dn, $parent);
if ($this->argonautServerToken == '') { if ($this->argonautServerToken == '') {
$this->argonautServerToken = md5(mt_rand()); $this->argonautServerToken = md5(random_int(0, PHP_INT_MAX));
} }
$this->attributesAccess['argonautProtocol']->setManagedAttributes( $this->attributesAccess['argonautProtocol']->setManagedAttributes(
array( array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment