summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott <scott@paragonie.com>2016-01-26 21:39:43 -0500
committerScott <scott@paragonie.com>2016-01-26 21:39:43 -0500
commit1f0018fd968b41bda5a53bdec21a09880e645c6e (patch)
tree8fa27a3848c40000f49bba4eeeef38254cd78343
parentdd8998b7c846f6909f4e7a5f67fabebfc412a4f7 (diff)
parente56ddbc95a3240a8b57a44ff7f41d48b968ac03c (diff)
downloadrandom_compat-1f0018fd968b41bda5a53bdec21a09880e645c6e.zip
random_compat-1f0018fd968b41bda5a53bdec21a09880e645c6e.tar.gz
random_compat-1f0018fd968b41bda5a53bdec21a09880e645c6e.tar.bz2
Merge pull request #86 from stof/patch-1
Fix the signature of the final random_bytes polyfill without any suitable backend
-rw-r--r--lib/random.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/random.php b/lib/random.php
index fb21ef2..4b0d262 100644
--- a/lib/random.php
+++ b/lib/random.php
@@ -134,7 +134,7 @@ if (PHP_VERSION_ID < 70000) {
* We don't have any more options, so let's throw an exception right now
* and hope the developer won't let it fail silently.
*/
- function random_bytes()
+ function random_bytes($length)
{
throw new Exception(
'There is no suitable CSPRNG installed on your system'