ParagonIE_Sodium_Compat::runtime_speed_test

SummerySummery

Runtime testing method for 32-bit platforms.

Syntax

ParagonIE_Sodium_Compat::runtime_speed_test( int $iterations, int $maxTimeout )

DescriptionDescription

Usage: If runtime_speed_test() returns FALSE, then our 32-bit implementation is to slow to use safely without risking timeouts. If this happens, install sodium from PECL to get acceptable performance.

ParametersParameters

$iterations

(int) (Required) Number of multiplications to attempt

$maxTimeout

(int) (Required) Milliseconds

ReturnReturn

(bool) TRUE if we're fast enough, FALSE is not

SourceSource

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


			
Scroll to Top