Random\Engine\Secure::generate

(PHP 8 >= 8.2.0)

Random\Engine\Secure::generateGenerate cryptographically secure randomness

说明

public Random\Engine\Secure::generate(): string

Returns cryptographically secure randomness.

此函数使用的随机性来源如下:

参数

此函数没有参数。

返回值

A string containing PHP_INT_SIZE cryptographically secure random bytes.

错误/异常

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top