ParagonIE_Sodium_Compat::randombytes_random16

Advertisement

Summery Summery

Generate a random 16-bit integer.

Syntax Syntax

ParagonIE_Sodium_Compat::randombytes_random16()

Return Return

(int)

Source Source

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

    public static function randombytes_random16()
    {
        if (self::use_fallback('randombytes_random16')) {
            return (int) call_user_func('\\Sodium\\randombytes_random16');
        }
        return random_int(0, 65535);
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.