Changeset 52988 for trunk/src/wp-includes/sodium_compat/src/Compat.php
- Timestamp:
- 03/24/2022 03:18:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/src/Compat.php
r51591 r52988 3534 3534 } 3535 3535 } 3536 /** @var positive-int $numBytes */ 3536 3537 if (self::use_fallback('randombytes_buf')) { 3537 3538 return (string) call_user_func('\\Sodium\\randombytes_buf', $numBytes); 3539 } 3540 if ($numBytes < 0) { 3541 throw new SodiumException("Number of bytes must be a positive integer"); 3538 3542 } 3539 3543 return random_bytes($numBytes);
Note: See TracChangeset
for help on using the changeset viewer.