<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'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"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></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>
> On Apr 5, 2017, at 7:00 PM, Peter Dillinger via swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:<br>
><br>
> Haha:<br>
><br>
>> <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>
>><br>
>> In general, I’d recommend against providing a default that we know won’t meet everyone’s needs,<br>
>> as randomness can have security properties.<br>
><br>
> The same could be said of Hashable and even String concatenation, and bad randomness isn't even in the OWAP Top 10 (by my reading).<br>
<br>
</span>Making some "mistakes" in the past shouldn't encourage to make them in the present.<br>
<div class="gmail-m_-6683182244910580844HOEnZb"><div class="gmail-m_-6683182244910580844h5"><br>
><br>
> --<br>
> Peter Dillinger, Ph.D.<br>
> Software Engineering Manager, Coverity Analysis, Software Integrity Group | Synopsys<br>
> <a href="http://www.synopsys.com/software" rel="noreferrer" target="_blank">www.synopsys.com/software</a><br>
><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>
<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>