<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'class.random-engine.php',
    1 => 'Random\\Engine',
    2 => 'The Random\\Engine interface',
  ),
  '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' => 'en',
    '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">The Random\Engine interface</h1>
 

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


  <div class="section" id="random-engine.intro">
   <h2 class="title">Giriş</h2>
   <p class="para">
    A <span class="classname"><strong class="classname">Random\Engine</strong></span> provides a low-level source of randomness by
    returning random bytes that are consumed by high-level APIs to perform their operations.
    The <span class="classname"><strong class="classname">Random\Engine</strong></span> interface allows swapping out the algorithm
    used to generate randomness, because each algorithm makes different tradeoffs to fit
    specific use-cases. Some algorithms are very fast, but generate lower-quality randomness,
    whereas other algorithms are slower, but generate better randomness, up to
    cryptographically secure randomness as provided by the <span class="classname"><a href="class.random-engine-secure.php" class="classname">Random\Engine\Secure</a></span>
    engine.
   </p>

   <p class="para">
    PHP provides several <span class="classname"><strong class="classname">Random\Engine</strong></span>s out of the box to accommodate
    different use-cases. The <span class="classname"><a href="class.random-engine-secure.php" class="classname">Random\Engine\Secure</a></span> engine that is
    backed by a <abbr title="Cryptographically Secure PseudoRandom Number Generator">CSPRNG</abbr> is the recommended safe default choice, unless
    the application requires either reproducible sequences or very high performance.
   </p>
  </div>


  <div class="section" id="random-engine.synopsis">
   <h2 class="title">Arayüz Sözdizimi</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">/* Yöntemler */</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>İçindekiler</h2><ul class="chunklist chunklist_reference"><li><a href="random-engine.generate.php">Random\Engine::generate</a> — Generates randomness</li></ul>
</div>
<?php manual_footer($setup); ?>