<div dir="ltr">Directly copying a swift-evolution email I sent almost exactly a year ago:<div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I encourage anyone thinking about PRNG APIs to check out what C++ STL has to offer: <a href="http://en.cppreference.com/w/cpp/numeric/random" target="_blank">http://en.cppreference.com/w/<wbr>cpp/numeric/random</a><br>And this analysis/extension of it: <a href="http://www.pcg-random.org/posts/ease-of-use-without-loss-of-power.html" target="_blank">http://www.pcg-random.org/<wbr>posts/ease-of-use-without-<wbr>loss-of-power.html</a></blockquote></div><div><br></div><div><br></div><div>I also found Milos Rankovic&#39;s response worth considering: <a href="https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20160404/001676.html">https://lists.swift.org/pipermail/swift-users/Week-of-Mon-20160404/001676.html</a></div><div class="gmail_extra"><br clear="all"><div><div class="gmail-m_-6683182244910580844gmail_signature"><div dir="ltr"><div>-Jacob<br></div></div></div></div>
<br><div class="gmail_quote">On Wed, Apr 5, 2017 at 10:25 AM, Charlie Monroe via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</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"><span><br>
&gt; On Apr 5, 2017, at 7:00 PM, Peter Dillinger via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Haha:<br>
&gt;<br>
&gt;&gt; <a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170227/033482.html" rel="noreferrer" target="_blank">https://lists.swift.org/piperm<wbr>ail/swift-evolution/Week-of-<wbr>Mon-20170227/033482.html</a><br>
&gt;&gt;<br>
&gt;&gt; In general, I’d recommend against providing a default that we know won’t meet everyone’s needs,<br>
&gt;&gt; as randomness can have security properties.<br>
&gt;<br>
&gt; The same could be said of Hashable and even String concatenation, and bad randomness isn&#39;t even in the OWAP Top 10 (by my reading).<br>
<br>
</span>Making some &quot;mistakes&quot; in the past shouldn&#39;t encourage to make them in the present.<br>
<div class="gmail-m_-6683182244910580844HOEnZb"><div class="gmail-m_-6683182244910580844h5"><br>
&gt;<br>
&gt; --<br>
&gt; Peter Dillinger, Ph.D.<br>
&gt; Software Engineering Manager, Coverity Analysis, Software Integrity Group | Synopsys<br>
&gt; <a href="http://www.synopsys.com/software" rel="noreferrer" target="_blank">www.synopsys.com/software</a><br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; swift-evolution mailing list<br>
&gt; <a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
&gt; <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-evolution</a><br>
<br>
______________________________<wbr>_________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-evolution</a><br>
</div></div></blockquote></div><br></div></div>