summaryrefslogtreecommitdiffstats
path: root/inc/util.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-03-21 12:18:47 +0100
committerSimon Rettberg2017-03-21 12:18:47 +0100
commitc415a9374872c6235fe822a5e038546522817e3a (patch)
treed04977a0cb1978195af5ce2ce083832de92e7178 /inc/util.inc.php
parent[webinterface] Remember last HTTPS config; add redirect to HTTPS setting (diff)
downloadslx-admin-c415a9374872c6235fe822a5e038546522817e3a.tar.gz
slx-admin-c415a9374872c6235fe822a5e038546522817e3a.tar.xz
slx-admin-c415a9374872c6235fe822a5e038546522817e3a.zip
Fix a couple of warnings and notices from error.log
Diffstat (limited to 'inc/util.inc.php')
-rw-r--r--inc/util.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php
index d454d18d..f5e10ebc 100644
--- a/inc/util.inc.php
+++ b/inc/util.inc.php
@@ -375,7 +375,7 @@ SADFACE;
* @param bool $secure true = only use strong random sources
* @return string|bool string of requested length, false on error
*/
- public static function randomBytes($length, $secure)
+ public static function randomBytes($length, $secure = true)
{
if (function_exists('random_bytes')) {
return random_bytes($length);