Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Use CSPRNG function instead of mt_rand#6

Open
stevecoug wants to merge 1 commit intoendyjasmi:masterfrom
stevecoug:use-csprng
Open

Use CSPRNG function instead of mt_rand#6
stevecoug wants to merge 1 commit intoendyjasmi:masterfrom
stevecoug:use-csprng

Conversation

@stevecoug
Copy link
Copy Markdown

As noted in the PHP manual, the mt_rand functions are NOT cryptographically secure. I've included the random_compat library to add cryptographically secure random functions to PHP < 7.0, and then used random_int instead of mt_rand.

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.

1 participant