The Random\BrokenRandomEngineError class

(PHP 8 >= 8.2.0)

Introduction

Indicates that the used Random\Engine is broken, e.g. because it is severely biased.

Class synopsis

classRandom\BrokenRandomEngineErrorextendsRandom\RandomError {
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
publicError::__construct(string$message = "", int$code = 0, ?Throwable$previous = null)
finalpublicError::getCode(): int
finalpublicError::getFile(): string
finalpublicError::getLine(): int
finalpublicError::getTrace(): array
}
To Top