public static function ParagonIE_Sodium_Compat::polyfill_is_fast in Automatic Updates 7
Same name and namespace in other branches
- 8 vendor/paragonie/sodium_compat/src/Compat.php \ParagonIE_Sodium_Compat::polyfill_is_fast()
Will sodium_compat run fast on the current hardware and PHP configuration?
Return value
bool
1 call to ParagonIE_Sodium_Compat::polyfill_is_fast()
- ParagonIE_Sodium_Compat::runtime_speed_test in vendor/
paragonie/ sodium_compat/ src/ Compat.php - Runtime testing method for 32-bit platforms.
File
- vendor/
paragonie/ sodium_compat/ src/ Compat.php, line 3373
Class
Code
public static function polyfill_is_fast() {
if (extension_loaded('sodium')) {
return true;
}
if (extension_loaded('libsodium')) {
return true;
}
return PHP_INT_SIZE === 8;
}