<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="https://sandfox.me/assets/xml/atom.xsl" type="text/xsl media="all"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom">
  <title>Sand Fox (Posts about ext-random)</title>
  <id>https://sandfox.me/tags/ext-random.xml</id>
  <updated>2026-01-05T10:06:08Z</updated>
  <author>
    <name>Anton Smirnov</name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://sandfox.me/tags/ext-random.xml"/>
  <link rel="alternate" type="text/html" href="https://sandfox.me/tags/ext-random.html"/>
  <generator uri="https://getnikola.com/">Nikola</generator>
  <entry>
    <title>Polyfill for Random Extension</title>
    <id>https://sandfox.me/php/random-polyfill.html</id>
    <updated>2022-07-23T19:52:00+03:00</updated>
    <published>2022-07-23T19:52:00+03:00</published>
    <author>
      <name>Anton Smirnov</name>
    </author>
    <link rel="alternate" type="text/html" href="https://sandfox.me/php/random-polyfill.html"/>
    <summary type="html">&lt;p&gt;Announcing my new library, a polyfill for the new sexy &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;ext-random&lt;/span&gt;&lt;/code&gt; from PHP 8.2
&lt;a class="reference external" href="https://sandfox.me/php/php-82-early-look.html"&gt;that I mentioned a couple of posts ago.&lt;/a&gt;
It requires PHP 7.1+ and the GMP extension.&lt;/p&gt;
&lt;p&gt;There will be some limitations with the compatibility but it's already usable for most simple use cases.
Grab it here: &lt;a class="reference external" href="https://sandfox.dev/php/random-polyfill.html"&gt;https://sandfox.dev/php/random-polyfill.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Many thanks to &lt;a class="reference external" href="https://github.com/zeriyoshi"&gt;Go Kudo&lt;/a&gt; for his work on the original extension.&lt;/p&gt;</summary>
    <category term="ext-random" label="ext-random"/>
    <category term="php-82" label="php 8.2"/>
  </entry>
</feed>
