From 71c02259968aa24626796910b5e889cd0b0e23e1 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Mon, 7 Feb 2005 16:46:02 +0000 Subject: [PATCH] bug #1117907 --- ChangeLog | 7 +++++-- libraries/mcrypt.lib.php | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b29105bbd..b6f1b8f1a 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,11 +5,14 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-06-07 Alexander M. Turek + * libraries/mcrypt.lib.php: Bug #1117907 ("wrong parameter count" with + php 4.1.x. + 2005-02-06 Alexander M. Turek * header.inc.php, tbl_properties_table_info.php: View detection for header.inc.php. - * tbl_properties_links.php: - - Adjusted tab bar for views. + * tbl_properties_links.php: Adjusted tab bar for views. 2005-02-05 Marc Delisle * tbl_relation.php: removed comments handling (pmadb-style) from relation view diff --git a/libraries/mcrypt.lib.php b/libraries/mcrypt.lib.php index 6df3d05a3..c4ed43972 100644 --- a/libraries/mcrypt.lib.php +++ b/libraries/mcrypt.lib.php @@ -12,7 +12,7 @@ // per server so I don't put the server number in the cookie name. if (!isset($_COOKIE['pma_mcrypt_iv'])) { - srand(); + srand((double) microtime() * 1000000); $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_CBC), MCRYPT_RAND); setcookie('pma_mcrypt_iv', base64_encode($iv),