WordPress at a glance
function is not described

ParagonIE_Sodium_Compat::crypto_secretbox_keygen() public WP 1.0

Return a secure random key for use with crypto_secretbox

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

No Hooks.

Return

String. Nothing.

Usage

$result = ParagonIE_Sodium_Compat::crypto_secretbox_keygen();

Code of ParagonIE_Sodium_Compat::crypto_secretbox_keygen() WP 5.7.1

<?php
public static function crypto_secretbox_keygen()
{
    return random_bytes(self::CRYPTO_SECRETBOX_KEYBYTES);
}