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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stevecoug
Copy link

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