summaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/util.php b/lib/util.php
index 0a824f86eb3..75991d685c6 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -611,14 +611,14 @@ class OC_Util {
// Try to use openssl_random_pseudo_bytes
if(function_exists('openssl_random_pseudo_bytes')) {
$pseudo_byte = bin2hex(openssl_random_pseudo_bytes($length, $strong));
- if($strong == TRUE) {
+ if($strong == true) {
return substr($pseudo_byte, 0, $length); // Truncate it to match the length
}
}
// Try to use /dev/urandom
$fp = @file_get_contents('/dev/urandom', false, null, 0, $length);
- if ($fp !== FALSE) {
+ if ($fp !== false) {
$string = substr(bin2hex($fp), 0, $length);
return $string;
}
@@ -645,14 +645,14 @@ class OC_Util {
// Check openssl_random_pseudo_bytes
if(function_exists('openssl_random_pseudo_bytes')) {
openssl_random_pseudo_bytes(1, $strong);
- if($strong == TRUE) {
+ if($strong == true) {
return true;
}
}
// Check /dev/urandom
$fp = @file_get_contents('/dev/urandom', false, null, 0, 1);
- if ($fp !== FALSE) {
+ if ($fp !== false) {
return true;
}