Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Random\Engine::generateRandom\Engine\Secure>
^RandomLast updated: Mon, 26 Oct 2026

The Random\CryptoSafeEngine interface

(PHP 8 >= 8.2.0)

Introduction

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

Interface synopsis

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

<Random\Engine::generateRandom\Engine\Secure>
^RandomLast updated: Mon, 26 Oct 2026