Server compatibility while generating token
mategvo opened this issue · 1 comments
mategvo commented
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));
}