PHP 7 gets optional strict type checking https://wiki.php.net/rfc/scalar_type_hints_v5 … and perhaps a simple CSPRNG API https://wiki.php.net/rfc/easy_userland_csprng … Thanks @ircmaxell
-
-
@taviso@damienmiller@ircmaxell Oh, luckily I'm wrong: the while (read_bytes < size) condition won't be met when read_bytes wraps around. -
@solardiz@damienmiller@ircmaxell Yeah, returning success when the buffer wasn't filled with urandom is still pretty bad though! - 1 more reply
New conversation -
-
-
@taviso@damienmiller@ircmaxell Good catch! Even worse, read() errors will decrease read_bytes and may cause out of bounds writes.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.