SecureRandomInterface deprecated

SecureRandomInterface deprecated

interface SecureRandomInterface

deprecated

since version 2.8, to be removed in 3.0. Use the random_bytes function instead

Interface that needs to be implemented by all secure random number generators.

Methods

string nextBytes(int $nbBytes)

Generates the specified number of secure random bytes.

Details

string nextBytes(int $nbBytes)

Generates the specified number of secure random bytes.

Parameters

int $nbBytes

Return Value

string

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Security/Core/Util/SecureRandomInterface.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部