WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen() public WP 1.0

Return a secure random key for use with crypto_stream_xchacha20

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

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen();

Code of ParagonIE_Sodium_Compat::crypto_stream_xchacha20_keygen() WP 5.8.2

public static function crypto_stream_xchacha20_keygen()
{
    return random_bytes(self::CRYPTO_STREAM_XCHACHA20_KEYBYTES);
}