Skip to content

Commit badd328

Browse files
committed
random_bytes is not available on php5.6
1 parent cd2df42 commit badd328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Saml2/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ public static function extractOriginalQueryParam($name)
756756
*/
757757
public static function generateUniqueID()
758758
{
759-
return 'ONELOGIN_' . sha1(random_bytes(20));
759+
return 'ONELOGIN_' . sha1(uniqid((string)mt_rand(), true));
760760
}
761761

762762
/**

0 commit comments

Comments
 (0)