Skip to content

Commit 107f379

Browse files
author
Paul M. Jones
committed
update readme
1 parent 4e68cc0 commit 107f379

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,10 @@ if ($unsafe && $user->auth->isValid()) {
287287

288288
For a CSRF token to be useful, its random value must be cryptographically
289289
secure. Using things like `mt_rand()` is insufficient. Aura.Session comes with
290-
a `Randval` class that implements a `RandvalInterface`, and uses either the
291-
`openssl` or the `mcrypt` extension to generate a random value. If you do not
292-
have one of these extensions installed, you will need your own random-value
290+
a `Randval` class that implements a `RandvalInterface`. It uses the
291+
[`random_bytes()`](http://php.net/random_bytes) function preferentially, then
292+
`openssl`, or finally `mcrypt` to generate a random value. If you do not
293+
have one of these installed, you will need your own random-value
293294
implementation of the `RandvalInterface`. We suggest a wrapper around
294295
[RandomLib](https://github.com/ircmaxell/RandomLib).
295296

0 commit comments

Comments
 (0)