Commit dfd95224 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Increase number of random bytes used to generate the hash key.

parent 03894d63
......@@ -50,7 +50,7 @@ function GENHASH() {
if (! $fp) {
TBERROR("Error opening /dev/urandom", 1);
}
$random_bytes = fread($fp, 8);
$random_bytes = fread($fp, 32);
fclose($fp);
$hash = mhash (MHASH_MD5, bin2hex($retval) . " " . microtime());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment