WordPress at Your Fingertips
function is not described

ParagonIE_Sodium_Compat::crypto_generichash_keygen() public WP 1.0

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

No Hooks.

Return

String.

Usage

$result = ParagonIE_Sodium_Compat::crypto_generichash_keygen();

Code of ParagonIE_Sodium_Compat::crypto_generichash_keygen() WP 5.8.2

public static function crypto_generichash_keygen()
{
    return random_bytes(self::CRYPTO_GENERICHASH_KEYBYTES);
}