diff options
author | Scott <scott@paragonie.com> | 2016-04-05 10:58:09 -0400 |
---|---|---|
committer | Scott <scott@paragonie.com> | 2016-04-05 10:58:09 -0400 |
commit | 934c70de256739711ca9a7499466ea0baff72cb7 (patch) | |
tree | 3aabe593d0d48e64f4cb154f8a589cf981c4f6c3 | |
parent | d0aa2675b3891090468eb8bd42ab7bc512625991 (diff) | |
parent | b186a16253ea0ea2bb95699335a1f992ad4cd1e7 (diff) | |
download | random_compat-934c70de256739711ca9a7499466ea0baff72cb7.zip random_compat-934c70de256739711ca9a7499466ea0baff72cb7.tar.gz random_compat-934c70de256739711ca9a7499466ea0baff72cb7.tar.bz2 |
Merge pull request #101 from ConnorVG/patch-1
Some tweaks to README.md for consistency
-rw-r--r-- | README.md | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -82,8 +82,7 @@ var_dump(bin2hex($string)); ```php try { - $int = random_int(0,255); - + $int = random_int(0, 255); } catch (TypeError $e) { // Well, it's an integer, so this IS unexpected. die("An unexpected error has occurred"); @@ -92,7 +91,7 @@ try { die("An unexpected error has occurred"); } catch (Exception $e) { // If you get this message, the CSPRNG failed hard. - die("Could not generate a random string. Is our OS secure?"); + die("Could not generate a random int. Is our OS secure?"); } var_dump($int); |