(PHP 8 >= 8.2.0)
Random\Randomizer::getBytes — Get random bytes
$length
): string
本函数还未编写文档,仅有参数列表。
length
The length of the random string that should be returned in bytes; must be 1
or greater.
A string containing the requested number of random bytes.
length
is less than 1
,
a ValueError will be thrown.
Random\Randomizer::$engine
的
Random\Engine::generate() 方法抛出的任何 Throwable。
示例 #1 Random\Randomizer::getBytes() example
<?php
/* ... */
?>
以上例程的输出类似于:
...