diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-05-29 20:40:45 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-05-29 20:40:45 +0000 |
commit | 13a70520faa26eb23832b716d8a728fe1aff2c76 (patch) | |
tree | 4e40ee20ead73396d3bf69947af3851086fe54f5 /include | |
parent | b317745ac973ced560269f9d694d7d719fbea884 (diff) |
bug 3082: random key generation algorithm
git-svn-id: http://piwigo.org/svn/trunk@28571 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r-- | include/functions_session.inc.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/functions_session.inc.php b/include/functions_session.inc.php index 24cffea57..9fe28db8c 100644 --- a/include/functions_session.inc.php +++ b/include/functions_session.inc.php @@ -62,16 +62,6 @@ if (isset($conf['session_save_handler']) */ function generate_key($size) { - global $conf; - - $md5 = md5(substr(microtime(), 2, 6)); - $init = ''; - for ( $i = 0; $i < strlen( $md5 ); $i++ ) - { - if ( is_numeric( $md5[$i] ) ) $init.= $md5[$i]; - } - $init = substr( $init, 0, 8 ); - mt_srand( $init ); $key = ''; for ( $i = 0; $i < $size; $i++ ) { |