1
0
Fork 0

random_string calls

implement getRandomHex function
This commit is contained in:
Adam Magness 2018-11-08 08:45:46 -05:00
commit 991f259ecb
23 changed files with 47 additions and 29 deletions

View file

@ -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)
];

View file

@ -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);