Skip to content

Commit 462bb48

Browse files
committed
Cast mt_rand to string
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
1 parent a51ed65 commit 462bb48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Saml2/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ public static function extractOriginalQueryParam($name)
644644
*/
645645
public static function generateUniqueID()
646646
{
647-
return 'ONELOGIN_' . sha1(uniqid(mt_rand(), true));
647+
return 'ONELOGIN_' . sha1(uniqid((string)mt_rand(), true));
648648
}
649649

650650
/**

0 commit comments

Comments
 (0)