mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 23:41:38 +01:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@12624 1a063a9b-81f0-0310-95a4-ce76da25c4cd
10 lines
305 B
PHP
10 lines
305 B
PHP
<?php
|
|
|
|
function generate_random_password( $len = 8 ) {
|
|
_deprecated_function( __FUNCTION__, '3.0', 'wp_generarte_password()' );
|
|
$random_password = substr(md5(uniqid(microtime())), 0, intval( $len ) );
|
|
$random_password = apply_filters('random_password', $random_password);
|
|
return $random_password;
|
|
}
|
|
|
|
?>
|