<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 8, 2017 at 3:18 PM, Joshua Judson Rosen <span dir="ltr">&lt;<a href="mailto:rozzin@hackerposse.com" target="_blank">rozzin@hackerposse.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">On 08/08/2017 02:52 PM, Ken D&#39;Ambrosio wrote:<br>
&gt; On 2017-08-08 14:43, Bill Freeman wrote:<br>&gt;&gt; As to why ruby is designed to require a random number before being<br>
&gt;&gt; asked to do something dependent on such a random number is a question<br>
&gt;&gt; for the ruby developers.<br></div></div></blockquote><div><br>I assume you meant not dependent.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">
&gt;<br>
&gt; Email already sent. :-)<br>&gt;<br>
&gt; C&#39;est la vie.  I guess that&#39;s the way the Ruby crumbles...<br></div></div></blockquote><div><br></div><div>That&#39;d be a pretty bad design decision for some environments.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
</div></div>Instead of rewriting the whole thing, why not just seed the RNG manually?<br>
<br>
Slightly relevant-looking discussion BTW:<br>
<br>
    <a href="https://bugs.ruby-lang.org/issues/9569#note-56" rel="noreferrer" target="_blank">https://bugs.ruby-lang.org/<wbr>issues/9569#note-56</a><br>
<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">So, there you go. &quot;until the entropy pool is initialized&quot; is apparently<br>
about 3 minutes in your case ;)<br>
<br>
You should be able to explicitly seed Ruby&#39;s internal RNG,<br>
or explicitly seed the system RNG by writing bytes into<br>
/dev/random or /dev/urandom.<br>
<br>
If you want `instant good entropy&#39; at boot, you can even store<br>
some random data into a file at shutdown and then seed from that file<br>
at boot (be sure to invalidate that cache before seeding from it though,<br>
to ensure that you don&#39;t use the same seed twice!). IIRC there are<br>
some preexisting packages for this, and some distributions even do it by default.<br>
<br>
If you write a systemd service, it looks like you can depend on<br>
systemd-random-seed.service.<br></blockquote><div><br></div><div>The preseed might be a good 1st try at a fix that won&#39;t ruin the system RNG and potentially compromising security.</div><div><br></div><div>This reminds me of the old days when Slackware was created because SLS wouldn&#39;t fix permission issues correctly in the installer.  </div></div></div></div>