WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Compat::crypto_stream_keygen() public WP 1.0

Return a secure random key for use with crypto_stream

{} It's a method of the class: ParagonIE_Sodium_Compat{}

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Compat::crypto_stream_keygen();

Code of ParagonIE_Sodium_Compat::crypto_stream_keygen() WP 5.8.2

public static function crypto_stream_keygen()
{
    return random_bytes(self::CRYPTO_STREAM_KEYBYTES);
}