WordPress at a glance
function is not described

generate_random_password() WP 3.0.0

Deprecated in from version 3.0.0. It is no longer supported and can be removed in future releases. Use wp_generate_password() instead.

Generates a random password.

No Hooks.

Return

Null. Nothing.

Usage

generate_random_password( $len );
$len(int)
The length of password to generate.
Default: 8

Notes

  • See: wp_generate_password()

Changelog

Since 3.0.0 Introduced.
Deprecated Since 3.0.0 Use wp_generate_password()

Code of generate_random_password() WP 5.5.1

<?php
function generate_random_password( $len = 8 ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'wp_generate_password()' );
	return wp_generate_password( $len );
}