Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Conversation

@heyitspaul
Copy link
Contributor

The PHP str_shuffle() documentation states:

This function does not generate cryptographically secure values, and should not be used for cryptographic purposes.

This change makes use of random_bytes() if it's available and falls back to the old (probably ok) str_shuffle() implementation.

The [PHP `str_shuffle()`](http://php.net/manual/en/function.str-shuffle.php) documentation states:

```
This function does not generate cryptographically secure values, and should not be used for cryptographic purposes.
```

This change makes use of [`random_bytes()`](http://php.net/manual/en/function.random-bytes.php) if it's available and falls back to the old (probably ok) `str_shuffle()` implementation.
@RainLoop RainLoop merged commit d717b96 into RainLoop:master Mar 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants