summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2018-01-02 19:24:07 +0100
committernashe <thomas@chauchefoin.fr>2018-01-02 19:24:07 +0100
commit17665eafb7e271198e6d11d57aae3593664dac58 (patch)
tree2e0e12ab9d124801fa5459a2d16c84efbde007a1 /app
parent6ac12c0b26cd870e17dee0521eeaaf9487b85553 (diff)
downloadplanet-17665eafb7e271198e6d11d57aae3593664dac58.tar
planet-17665eafb7e271198e6d11d57aae3593664dac58.tar.gz
planet-17665eafb7e271198e6d11d57aae3593664dac58.tar.bz2
planet-17665eafb7e271198e6d11d57aae3593664dac58.tar.xz
planet-17665eafb7e271198e6d11d57aae3593664dac58.zip
Add paragonie/random_compat to implement a polyfill for random_bytes
Diffstat (limited to 'app')
-rw-r--r--app/helpers.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers.php b/app/helpers.php
index 8765fc6..01d0086 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -14,6 +14,11 @@ function register_polyfills()
call_user_func_array('_hash_equals', func_get_args());
}
}
+
+ if (!function_exists('random_bytes')) {
+ // If this function does not exist, it will be exposed
+ // automatically by paragonie/random_compat.
+ }
}
register_polyfills();