ParagonIE_Sodium_Compat::polyfill_is_fast

Advertisement

Summery Summery

Will sodium_compat run fast on the current hardware and PHP configuration?

Syntax Syntax

ParagonIE_Sodium_Compat::polyfill_is_fast()

Return Return

(bool)

Source Source

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

    public static function polyfill_is_fast()
    {
        if (extension_loaded('sodium')) {
            return true;
        }
        if (extension_loaded('libsodium')) {
            return true;
        }
        return PHP_INT_SIZE === 8;
    }

Advertisement

Advertisement

Leave a Reply