<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>2718.us blog &#187; prng</title>
	<atom:link href="http://2718.us/blog/tag/prng/feed/" rel="self" type="application/rss+xml" />
	<link>http://2718.us/blog</link>
	<description>Miscellaneous Technological Geekery</description>
	<lastBuildDate>Tue, 18 May 2010 02:42:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>A Variety of Issues with Pseudo-Random Numbers in PHP</title>
		<link>http://2718.us/blog/2008/08/31/a-variety-of-issues-with-pseudo-random-numbers-in-php/</link>
		<comments>http://2718.us/blog/2008/08/31/a-variety-of-issues-with-pseudo-random-numbers-in-php/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 01:10:22 +0000</pubDate>
		<dc:creator>2718.us</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[/dev/srandom]]></category>
		<category><![CDATA[mersenne twister]]></category>
		<category><![CDATA[mt_rand]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[prng]]></category>
		<category><![CDATA[pseudo-random number]]></category>
		<category><![CDATA[pseudo-random number generator]]></category>
		<category><![CDATA[pseudorandom number generator]]></category>
		<category><![CDATA[rand]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[random number]]></category>
		<category><![CDATA[random number generator]]></category>
		<category><![CDATA[rng]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://2718.us/blog/?p=106</guid>
		<description><![CDATA[It appears that there are now demonstrated exploits of PHP apps that use mt_rand() and/or rand() as a result of issues of seeding in one application affecting the PRNG stream in another application that used the PRNG to generate passwords or similar such things.  From mt_srand and not so random numbers: &#8230; it is strongly [...]]]></description>
			<content:encoded><![CDATA[<p>It appears that there are now demonstrated exploits of PHP apps that use mt_rand() and/or rand() as a result of issues of seeding in one application affecting the PRNG stream in another application that used the PRNG to generate passwords or similar such things.  From <a href="http://www.suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers/">mt_srand and not so random numbers</a>:</p>
<blockquote><p>&#8230; it is strongly recommended for the PHP developers to add more secure random number functions to the PHP core and it is strongly recommended for PHP application developers to keep their fingers away from srand() or mt_srand() and to never ever use rand() or mt_rand() for cryptographic secrets.</p></blockquote>
<p>It sounds like the PRNGs in PHP, mt_rand() and rand(), shouldn&#8217;t be used for anything security-related, and perhaps /dev/random or /dev/srandom or some such should be used instead (though this is much more system-dependent).</p>
]]></content:encoded>
			<wfw:commentRss>http://2718.us/blog/2008/08/31/a-variety-of-issues-with-pseudo-random-numbers-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

