ParagonIE_Sodium_Compat::randombytes_buf

SummerySummery

Generate a string of bytes from the kernel’s CSPRNG.

Syntax

ParagonIE_Sodium_Compat::randombytes_buf( int $numBytes )

DescriptionDescription

Proudly uses /dev/urandom (if getrandom(2) is not available).

ParametersParameters

$numBytes

(int) (Required)

ReturnReturn

(string)

SourceSource

File: wp-includes/sodium_compat/src/Compat.php


			
Scroll to Top