Introduced isReachableFilePath() and isReadableFile().
[core.git] / inc / classes / main / scrypt / class_Scrypt.php
index bcbc5b3eb26095e35dcae76dd572dec3b7059f0e..3bc5d76c216c5f43861253ccaad03bcd1845021c 100644 (file)
@@ -90,7 +90,7 @@ abstract class Scrypt extends BaseFrameworkSystem
                 $buffer_valid = true;
             }
         }
                 $buffer_valid = true;
             }
         }
-        if (!$buffer_valid && is_readable('/dev/urandom')) {
+        if (!$buffer_valid && BaseFrameworkSystem::isReadableFile('/dev/urandom')) {
             $f = fopen('/dev/urandom', 'r');
             $read = static::strlen($buffer);
             while ($read < $length) {
             $f = fopen('/dev/urandom', 'r');
             $read = static::strlen($buffer);
             while ($read < $length) {