W3cubDocs

/PHP

The Random\CryptoSafeEngine interface

Introduction

(PHP 8 >= 8.2.0)

A marker interface indicating that the Random\Engine returns cryptographically secure randomness.

Interface synopsis

interface Random\CryptoSafeEngine extends Random\Engine {
/* Inherited methods */
public Random\Engine::generate(): string
}

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.random-cryptosafeengine.php