summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConnor S. Parks <ConnorVG@users.noreply.github.com>2016-03-30 13:04:37 +0100
committerConnor S. Parks <ConnorVG@users.noreply.github.com>2016-03-30 13:04:37 +0100
commitb186a16253ea0ea2bb95699335a1f992ad4cd1e7 (patch)
tree9a0cc0f07f7708ef6db3fd522bdc079d5a9db0a1
parent76e90f747b769b347fe584e8015a014549107d35 (diff)
downloadrandom_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.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/README.md b/README.md
index 8056086..8df1591 100644
--- a/README.md
+++ b/README.md
@@ -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);