diff options
author | Connor S. Parks <ConnorVG@users.noreply.github.com> | 2016-03-30 13:04:37 +0100 |
---|---|---|
committer | Connor S. Parks <ConnorVG@users.noreply.github.com> | 2016-03-30 13:04:37 +0100 |
commit | b186a16253ea0ea2bb95699335a1f992ad4cd1e7 (patch) | |
tree | 9a0cc0f07f7708ef6db3fd522bdc079d5a9db0a1 | |
parent | 76e90f747b769b347fe584e8015a014549107d35 (diff) | |
download | random_compat-b186a16253ea0ea2bb95699335a1f992ad4cd1e7.zip random_compat-b186a16253ea0ea2bb95699335a1f992ad4cd1e7.tar.gz random_compat-b186a16253ea0ea2bb95699335a1f992ad4cd1e7.tar.bz2 |
Some tweaks to README.md for consistency
Did the `random_int` block just get no love or something? 😂
-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); |