<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.random.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'class.random-engine.php',
    1 => 'Random\\Engine',
    2 => 'L\'interface Random\\Engine',
  ),
  'up' => 
  array (
    0 => 'book.random.php',
    1 => 'Random',
  ),
  'prev' => 
  array (
    0 => 'enum.random-intervalboundary.php',
    1 => 'Random\\IntervalBoundary',
  ),
  'next' => 
  array (
    0 => 'random-engine.generate.php',
    1 => 'Random\\Engine::generate',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/random/random.engine.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.random-engine.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.random-engine" class="reference">
 <h1 class="title">L&#039;interface Random\Engine</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 8 &gt;= 8.2.0)</p>


  <div class="section" id="random-engine.intro">
   <h2 class="title">Introduction</h2>
   <p class="para">
    Un <span class="classname"><strong class="classname">Random\Engine</strong></span> constitue une source d&#039;aléatoire de bas niveau en
    retournant des octets aléatoires qui sont consommés par les API de haut niveau pour effectuer leurs opérations.
    L&#039;interface <span class="classname"><strong class="classname">Random\Engine</strong></span> permet d&#039;intervertir l&#039;algorithme
    utilisé pour générer de l&#039;aléatoire, car chaque algorithme fait des compromis différents
    pour répondre à des cas d&#039;utilisation spécifiques. Certains algorithmes sont très rapides,
    mais génèrent de l&#039;aléatoire de moindre qualité, tandis que d&#039;autres algorithmes sont plus lents,
    mais génèrent du meilleur aléatoire, jusqu&#039;à de l&#039;aléatoire cryptographiquement sécurisé
    tel que fourni par le moteur <span class="classname"><a href="class.random-engine-secure.php" class="classname">Random\Engine\Secure</a></span>.
   </p>

   <p class="para">
    PHP fournit plusieurs moteurs <span class="classname"><strong class="classname">Random\Engine</strong></span> pour répondre à
    différents cas d&#039;utilisation. Le moteur <span class="classname"><a href="class.random-engine-secure.php" class="classname">Random\Engine\Secure</a></span> qui est
    soutenu par un <abbr title="Cryptographically Secure PseudoRandom Number Generator">CSPRNG</abbr> est le choix par défaut recommandé, sauf si
    l&#039;application nécessite des séquences reproductibles ou des performances très élevées.
   </p>
  </div>


  <div class="section" id="random-engine.synopsis">
   <h2 class="title">Sommaire de l&#039;Interface</h2>


   <div class="classsynopsis"><div class="classsynopsisinfo">
    <span class="modifier">namespace</span> <strong class="package">Random</strong>;</div>

    <div class="classsynopsisinfo">
     
      <span class="modifier">interface</span> <strong class="interfacename"><strong class="interfacename">Engine</strong></strong> {</div>

     <div class="classsynopsisinfo classsynopsisinfo_comment">/* Méthodes */</div>
     <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="random-engine.generate.php" class="methodname">generate</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

    }
   </div>


  </div>

 </div>

 






<h2>Sommaire</h2><ul class="chunklist chunklist_reference"><li><a href="random-engine.generate.php">Random\Engine::generate</a> — G&eacute;n&egrave;re de l'al&eacute;atoire</li></ul>
</div>
<?php manual_footer($setup); ?>