etsy / 411

An Alert Management Web Application
https://demo.fouroneone.io
MIT License
969 stars 112 forks source link

I am having an issue with /dev/urandom function with fopen, fread and fclose #170

Closed siddhantmahajani closed 6 years ago

siddhantmahajani commented 6 years ago

I got an error with the /dev/urandom used with fopen in random.php I got the error regarding the same and i'm not able to hit the website as the random key generated are of 10 interger numbers hence it throws Cookie Short exception. Can anyone help me with this? I'm using a windows PC bdw. Thanks in Advance.

kiwiz commented 6 years ago

Is Linux an option? PHP7.0 has random_bytes, which is a cross platform way to get PRNs but I'd like to maintain PHP5 support.

siddhantmahajani commented 6 years ago

Yes. @kiwiz random_bytes did work fine. Thanks a ton.