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

Server compatibility while generating token #3

Closed
mategvo opened this issue Jul 29, 2014 · 1 comment
Closed

Server compatibility while generating token #3

mategvo opened this issue Jul 29, 2014 · 1 comment

Comments

@mategvo
Copy link

mategvo commented Jul 29, 2014

Hey,

I had a problem while uploading photos something was breaking, after some debuggin I found that my server is not compatible with some functions running when generating token in Component/UtilComponent.php

What I've done to fix this is change the crypto_rand_secure($min, $max) to:

public function crypto_rand_secure($min, $max)
{
    return md5(uniqid(mt_rand(), true));
}
@hugodias
Copy link
Owner

Fixed in commit a53b43c

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

No branches or pull requests

2 participants