Do you have a question? Post it now! No Registration Necessary. Now with pictures!
July 13, 2005, 9:16 pm
rate this thread
on linux but I don't get why it doesn't work on winxp
I am getting a warning
Warning: mcrypt_create_iv(): Cannot open source device in
It means that the function cannot open the device /dev/urandom, while
you are referring to that by using MCRYPT_DEV_URANDOM as the second
parameter (source). Since you're trying this on Windows you don't have a
/dev/urandom, so the only option is to use MCRYPT_RAND (rand() function)
as the second parameter.