Make WordPress Core


Ignore:
Timestamp:
03/20/2008 07:56:37 PM (17 years ago)
Author:
ryan
Message:

Use uniqid if getmypid is disabled. Props Solar Designer. fixes #6293

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-phpass.php

    r6777 r7421  
    4949        $this->portable_hashes = $portable_hashes;
    5050
    51         $this->random_state = microtime() . getmypid();
     51        $this->random_state = microtime() . (function_exists('getmypid') ? getmypid() : '') . uniqid(rand(), TRUE);
     52   
    5253    }
    5354
Note: See TracChangeset for help on using the changeset viewer.