<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Oct 8, 2013, at 4:31 AM, Yaron Keren <<a href="mailto:yaron.keren@gmail.com">yaron.keren@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="rtl"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">I fixed the issues.</div><div dir="ltr">__f_ data member will be used if !_WIN32 as a file descriptor so it's #ifdef-d.</div></div></blockquote><div><br></div>Shouldn't the "#  define _CRT_RAND_S" line be wrapped in "#if defined(_WIN32)"</div><div><br></div><div>like this:</div><div><br></div><div><div>#if defined(_WIN32)</div><div>// Must be defined before stdlib.h is included to enable rand_s().</div><div>#define _CRT_RAND_S</div><div>#endif</div><div><br></div></div><div>-- Marshall</div><div><br></div><div><div><br></div><br><blockquote type="cite"><div dir="rtl"><div dir="ltr">

<br></div><div dir="ltr">Yaron</div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2013/10/8 Nico Rieck <span dir="ltr"><<a href="mailto:nico.rieck@gmail.com" target="_blank">nico.rieck@gmail.com</a>></span></div>

<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; position: static; z-index: auto; "> #  endif<br>
+#  // Must be defined before stdlib.h is included to enable rand_s().<br>
+#  define _CRT_RAND_S<br>
 #endif  // _WIN32<br>
<br>
Since rand_s is never used in a libc++ header, I don't think it should be defined here.<br>
<br>
There are also trailing whitespace in the patch. The __f_ data member is unused and should be removed. (It also can't hold any HANDLE if that's the reason you kept it around.) And I see no need to duplicate entropy().<span class="HOEnZb"><font color="#888888"><br>


<br>
-Nico<br>
</font></span></blockquote></div><br></div>
<span><libcxx-rands.diff></span>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; ">-- Marshall<br><br>Marshall Clow     Idio Software   <<a href="mailto:mclow.lists@gmail.com">mailto:mclow.lists@gmail.com</a>><br><br>A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).<br>        -- Yu Suzuki</span>

</div>
<br></body></html>