hugodias/cakegallery

Server compatibility while generating token

mategvo opened this issue · 1 comments

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));
}

Fixed in commit a53b43c