summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott <scott@paragonie.com>2016-04-05 10:58:09 -0400
committerScott <scott@paragonie.com>2016-04-05 10:58:09 -0400
commit934c70de256739711ca9a7499466ea0baff72cb7 (patch)
tree3aabe593d0d48e64f4cb154f8a589cf981c4f6c3
parentd0aa2675b3891090468eb8bd42ab7bc512625991 (diff)
parentb186a16253ea0ea2bb95699335a1f992ad4cd1e7 (diff)
downloadrandom_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.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);