changeset 305 | 04f8250583e5 |
parent 300 | 614f6ff1a855 |
--- a/includes/rijndael.php Fri Aug 22 01:04:20 2008 -0400 +++ b/includes/rijndael.php Fri Aug 22 01:05:42 2008 -0400 @@ -900,10 +900,10 @@ { $key .= chr(mt_rand(0, 255)); } - if ( @file_exists('/dev/random') && @is_readable('/dev/random') ) + if ( @file_exists('/dev/urandom') && @is_readable('/dev/urandom') ) { // Let's use something a little more secure - $ur = @fopen('/dev/random', 'r'); + $ur = @fopen('/dev/urandom', 'r'); if ( !$ur ) return $key; $ukey = @fread($ur, $len);