Statement on glibc/iconv Vulnerability

Random\Randomizer::nextInt

(PHP 8 >= 8.2.0)

Random\Randomizer::nextIntGet a positive integer

Descrizione

public Random\Randomizer::nextInt(): int

Avviso

Questa funzione, al momento non è documentata; è disponibile soltanto la lista degli argomenti.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

A positive integer between 0 and a maximum value depending on the number of bytes returned from Random\Engine::generate(). The exact maximum can be calculated as 2$engine_bytes * 8 - 1 - 1.

Errori/Eccezioni

Esempi

Example #1 Random\Randomizer::nextInt() example

<?php
$r
= new \Random\Randomizer();

// Random "next" integer:
echo $r->nextInt(), "\n";
?>

Il precedente esempio visualizzerà qualcosa simile a:

8041689838856078718
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top