CSPRNG(Cryptographically Secure Pseudo-Random Number Generator,伪随机数产生器)。PHP 7 通过引入几个 CSPRNG 函数提供一种简单的机制来生成密码学上强壮的随机数。
php 伪随机数产生器
- random_bytes()php7
- Generatescryptographicallysecurepseudo-randombytes
- random_int()php7
- Generatescryptographicallysecurepseudo-randomintegers