<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Introduction</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="book.csprng.html">CSPRNG</a></div> <div class="next" style="text-align: right; float: right;"><a href="csprng.setup.html">Installing/Configuring</a></div> <div class="up"><a href="book.csprng.html">CSPRNG</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="intro.csprng" class="preface"> <h1 class="title">Introduction</h1> <p class="para"> The <a href="https://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator" class="link external">» cryptographically secure pseudo-random number generator</a> (CSPRNG) API provides an easy and reliable way to generate crypto-strong random integers and bytes for use within cryptographic contexts. </p> <p class="para"> This exists as of PHP 7.0.0 but there is also a <a href="https://github.com/paragonie/random_compat" class="link external">» userland implementation</a> for PHP >= 5.2.0. </p> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="book.csprng.html">CSPRNG</a></div> <div class="next" style="text-align: right; float: right;"><a href="csprng.setup.html">Installing/Configuring</a></div> <div class="up"><a href="book.csprng.html">CSPRNG</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>