<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 3, 2014 at 9:12 PM, Watson Ladd <span dir="ltr"><<a href="mailto:watsonbladd@gmail.com" target="_blank">watsonbladd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">As DJB pointed out on another listhost, one only needs 256 random bits<br>

once, and can then use a PRF to generate an indefinite number forever.<br>
Why does /dev/random not do this and so avoid blocking after startup?<br>
It wouldn't be that hard to write to a defined block of a disk image<br>
these 32 random bytes.<br><br></blockquote><div><br></div><div>Good question....</div><div>with 256 bits you only have 2^256  different streams of bits. 115792089237316195423570985008687907853269984665640564039457584007913129639936</div>
<div>   ;-)</div><div><br></div><div>Not all PRN streams are stable with all possible input values (seeds).</div><div>For various RNG methods there are good and even bad input seeds.</div><div>Some PRN streams repeat themselves while others collapse eventually.  </div>
<div>There is a need in some cases for RNs before the file system is live.</div><div><br></div><div>Consider:   <a href="http://www.bsdcan.org/2006/papers/ImprovingTCPIP.pdf">http://www.bsdcan.org/2006/papers/ImprovingTCPIP.pdf</a></div>
<div>for a system that boots over the net.</div><div><br></div><div>It seems to me that many of the well considered issues with dev/*random*</div><div>could go away by replacing the Linux device you do not like with one you</div>
<div>do like.  </div><div><br></div><div>A casino might elect to filter or toss any stream with winning and loosing runs </div><div>greater than 10 to avoid the <span style="font-size:13px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.200000762939453px"> </span><b style="font-size:13px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.200000762939453px">wheat and chessboard problem</b></div>
<div>  <a href="http://en.wikipedia.org/wiki/Wheat_and_chessboard_problem">http://en.wikipedia.org/wiki/Wheat_and_chessboard_problem</a><b style="font-size:13px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.200000762939453px"><br>
</b></div><div><br></div><div>Many cats, skin yours the way you want...</div><div><br></div><div><br></div><div><b style="font-size:13px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.200000762939453px"><br></b></div>
<div><b style="font-size:13px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.200000762939453px"><br></b></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br clear="all"><div><br></div>-- <br>
<div dir="ltr">  T o m    M i t c h e l l</div>
</div></div>