random_string calls
implement getRandomHex function
This commit is contained in:
parent
fd597472f1
commit
991f259ecb
23 changed files with 47 additions and 29 deletions
|
@ -54,7 +54,7 @@ class LDSignature
|
|||
{
|
||||
$options = [
|
||||
'type' => 'RsaSignature2017',
|
||||
'nonce' => random_string(64),
|
||||
'nonce' => Strings::getRandomHex(64),
|
||||
'creator' => $owner['url'] . '#main-key',
|
||||
'created' => DateTimeFormat::utcNow(DateTimeFormat::ATOM)
|
||||
];
|
||||
|
|
|
@ -16,7 +16,7 @@ class Strings
|
|||
* @param int $size
|
||||
* @return string
|
||||
*/
|
||||
public static function getRandomHex($size = 64) // random_string()
|
||||
public static function getRandomHex($size = 64)
|
||||
{
|
||||
$byte_size = ceil($size / 2);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue