Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AccessToken.php #481

Merged
merged 1 commit into from
Oct 22, 2014
Merged

Update AccessToken.php #481

merged 1 commit into from
Oct 22, 2014

Conversation

sarciszewski
Copy link
Contributor

When a CSPRNG is available, just grab as many bytes as necessary and return bin2hex($randomData)'. When there isn't, use the legacy hashing mode. Though PHP >= 5.3.0 will always haveopenssl_random_pseudo_bytes()` available.

When a CSPRNG is available, just grab as many bytes as necessary and return `bin2hex($randomData)'. When there isn't, use the legacy hashing mode. Though PHP >= 5.3.0 will always have `openssl_random_pseudo_bytes()` available.
bshaffer added a commit that referenced this pull request Oct 22, 2014
@bshaffer bshaffer merged commit 6811d3d into bshaffer:develop Oct 22, 2014
@bshaffer
Copy link
Owner

looks good, thanks!

@sarciszewski sarciszewski deleted the patch-2 branch October 28, 2014 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants