diff -Naur orig/lib/adodb/adodb-csvlib.inc.php fix/lib/adodb/adodb-csvlib.inc.php --- orig/lib/adodb/adodb-csvlib.inc.php 2006-05-04 00:41:47.000000000 -0500 +++ fix/lib/adodb/adodb-csvlib.inc.php 2006-09-05 17:53:45.000000000 -0500 @@ -279,7 +279,7 @@ // skip the decimal place $mtime = substr(str_replace(' ','_',microtime()),2); // getmypid() actually returns 0 on Win98 - never mind! - $tmpname = $filename.uniqid($mtime).getmypid(); + $tmpname = $filename.uniqid($mtime,true).getmypid(); if (!($fd = @fopen($tmpname,'a'))) return false; $ok = ftruncate($fd,0); if (!fwrite($fd,$contents)) $ok = false; @@ -309,4 +309,4 @@ return $ok; } -?> \ No newline at end of file +?> diff -Naur orig/lib/adodb/tohtml.inc.php fix/lib/adodb/tohtml.inc.php --- orig/lib/adodb/tohtml.inc.php 2006-05-04 00:41:48.000000000 -0500 +++ fix/lib/adodb/tohtml.inc.php 2006-09-05 17:54:04.000000000 -0500 @@ -107,7 +107,7 @@ case 'B': if (substr($v,8,2)=="BM" ) $v = substr($v,8); $mtime = substr(str_replace(' ','_',microtime()),2); - $tmpname = "tmp/".uniqid($mtime).getmypid(); + $tmpname = "tmp/".uniqid($mtime,true).getmypid(); $fd = @fopen($tmpname,'a'); @ftruncate($fd,0); @fwrite($fd,$v); @@ -192,4 +192,4 @@ print $s; } -?> \ No newline at end of file +?> diff -Naur orig/lib/cas/CAS.php fix/lib/cas/CAS.php --- orig/lib/cas/CAS.php 2006-05-04 00:41:49.000000000 -0500 +++ fix/lib/cas/CAS.php 2006-09-05 17:55:33.000000000 -0500 @@ -387,7 +387,7 @@ } if ( empty($PHPCAS_DEBUG['unique_id']) ) { - $PHPCAS_DEBUG['unique_id'] = substr(strtoupper(md5(uniqid(''))),0,4); + $PHPCAS_DEBUG['unique_id'] = substr(strtoupper(md5(uniqid('',true))),0,4); } $PHPCAS_DEBUG['filename'] = $filename; diff -Naur orig/lib/fpdf/fpdfprotection.php fix/lib/fpdf/fpdfprotection.php --- orig/lib/fpdf/fpdfprotection.php 2006-06-18 21:39:05.000000000 -0500 +++ fix/lib/fpdf/fpdfprotection.php 2006-09-05 17:59:54.000000000 -0500 @@ -53,7 +53,7 @@ $protection += $options[$permission]; } if ($owner_pass === null) - $owner_pass = uniqid(rand()); + $owner_pass = uniqid(rand(),true); $this->encrypted = true; $this->_generateencryptionkey($user_pass, $owner_pass, $protection); } @@ -204,4 +204,4 @@ } } -?> \ No newline at end of file +?> diff -Naur orig/lib/pclzip/pclzip.lib.php fix/lib/pclzip/pclzip.lib.php --- orig/lib/pclzip/pclzip.lib.php 2006-05-04 00:42:00.000000000 -0500 +++ fix/lib/pclzip/pclzip.lib.php 2006-09-05 17:56:45.000000000 -0500 @@ -1830,7 +1830,7 @@ //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position in file : ".ftell($this->zip_fd)."'"); // ----- Creates a temporay file - $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; + $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-',true).'.tmp'; // ----- Open the temporary file in write mode //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "Open file in binary read mode"); @@ -4413,7 +4413,7 @@ if ($v_nb_extracted > 0) { // ----- Creates a temporay file - $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; + $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-',true).'.tmp'; // ----- Creates a temporary zip archive $v_temp_zip = new PclZip($v_zip_temp_name); @@ -4741,7 +4741,7 @@ //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 5, "Position in archive_to_add : ".ftell($p_archive_to_add->zip_fd)."'"); // ----- Creates a temporay file - $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-').'.tmp'; + $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid('pclzip-',true).'.tmp'; // ----- Open the temporary file in write mode //--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "Open file in binary read mode"); diff -Naur orig/lib/phpmailer/class.phpmailer.php fix/lib/phpmailer/class.phpmailer.php --- orig/lib/phpmailer/class.phpmailer.php 2006-05-04 00:42:00.000000000 -0500 +++ fix/lib/phpmailer/class.phpmailer.php 2006-09-05 17:57:05.000000000 -0500 @@ -774,7 +774,7 @@ $result = ""; // Set the boundaries - $uniq_id = md5(uniqid(time())); + $uniq_id = md5(uniqid(time(),true)); $this->boundary[1] = "b1_" . $uniq_id; $this->boundary[2] = "b2_" . $uniq_id; diff -Naur orig/lib/smarty/Smarty_Compiler.class.php fix/lib/smarty/Smarty_Compiler.class.php --- orig/lib/smarty/Smarty_Compiler.class.php 2005-05-24 01:07:11.000000000 -0500 +++ fix/lib/smarty/Smarty_Compiler.class.php 2006-09-05 17:58:47.000000000 -0500 @@ -2206,7 +2206,7 @@ $_cacheable = !isset($this->_plugins[$type][$name]) || $this->_plugins[$type][$name][4]; if ($_cacheable || 0<$this->_cacheable_state++) return ''; - if (!isset($this->_cache_serial)) $this->_cache_serial = md5(uniqid('Smarty')); + if (!isset($this->_cache_serial)) $this->_cache_serial = md5(uniqid('Smarty',true)); $_ret = 'if ($this->caching && !$this->_cache_including) { echo \'{nocache:' . $this->_cache_serial . '#' . $this->_nocache_count . '}\';}'; diff -Naur orig/lib/smarty/core/core.write_file.php fix/lib/smarty/core/core.write_file.php --- orig/lib/smarty/core/core.write_file.php 2004-05-31 00:29:10.000000000 -0500 +++ fix/lib/smarty/core/core.write_file.php 2006-09-05 17:58:12.000000000 -0500 @@ -25,7 +25,7 @@ // write to tmp file, then rename it to avoid // file locking race condition - $_tmp_file = $_dirname . DIRECTORY_SEPARATOR . uniqid(''); + $_tmp_file = $_dirname . DIRECTORY_SEPARATOR . uniqid('',true); if (!($fd = @fopen($_tmp_file, 'w'))) { $smarty->trigger_error("problem writing temporary file '$_tmp_file'"); diff -Naur orig/lib/snoopy/Snoopy.class.inc fix/lib/snoopy/Snoopy.class.inc --- orig/lib/snoopy/Snoopy.class.inc 2006-05-04 00:42:00.000000000 -0500 +++ fix/lib/snoopy/Snoopy.class.inc 2006-09-05 17:59:15.000000000 -0500 @@ -1214,7 +1214,7 @@ break; case "multipart/form-data": - $this->_mime_boundary = "Snoopy".md5(uniqid(microtime())); + $this->_mime_boundary = "Snoopy".md5(uniqid(microtime(),true)); reset($formvars); while(list($key,$val) = each($formvars)) {