WordPress at a glance
function is not described

ParagonIE_Sodium_Compat::polyfill_is_fast() public WP 1.0

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

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

No Hooks.

Return

true|false. Null. Nothing.

Usage

$result = ParagonIE_Sodium_Compat::polyfill_is_fast();

Code of ParagonIE_Sodium_Compat::polyfill_is_fast() WP 5.7.1

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