ache
ba8920d51c
1) POSIX prohibits printing errors to stderr here and require
...
returning NULL:
"Upon successful completion, initstate() and setstate() shall return a
pointer to the previous state array; otherwise, a null pointer shall
be returned.
Although some implementations of random() have written messages to
standard error, such implementations do not conform to POSIX.1-2008."
2) Move error detections earlier to prevent state modifying.
MFC after: 1 week
2016-05-22 06:18:59 +00:00
..
2016-05-13 04:03:20 +00:00
2014-06-23 08:25:03 +00:00
2013-05-28 20:57:40 +00:00
2015-09-20 20:24:28 +00:00
2013-05-28 20:57:40 +00:00
2015-09-20 20:24:28 +00:00
2013-05-28 20:57:40 +00:00
2014-12-21 12:36:36 +00:00
2015-09-20 20:15:44 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2015-09-20 20:24:28 +00:00
2013-05-28 20:57:40 +00:00
2015-09-20 20:24:28 +00:00
2013-05-28 20:57:40 +00:00
2015-09-20 20:24:28 +00:00
2015-09-20 20:24:28 +00:00
2014-04-02 16:07:48 +00:00
2013-05-28 20:57:40 +00:00
2015-09-20 20:24:28 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2014-12-21 12:36:36 +00:00
2015-09-20 20:24:28 +00:00
2013-05-28 20:57:40 +00:00
2013-07-17 08:45:27 +00:00
2013-12-13 21:50:03 +00:00
2014-06-22 21:54:57 +00:00
2014-07-08 12:19:34 +00:00
2014-06-22 20:13:57 +00:00
2013-05-28 20:57:40 +00:00
2014-01-14 01:52:34 +00:00
2015-12-27 07:50:11 +00:00
2015-12-27 07:50:11 +00:00
2015-12-27 07:50:11 +00:00
2015-12-27 07:50:11 +00:00
2014-04-02 16:07:48 +00:00
2016-04-30 01:24:24 +00:00
2015-12-27 07:50:11 +00:00
2015-12-27 07:50:11 +00:00
2013-06-13 00:19:30 +00:00
2015-09-20 20:24:28 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2016-04-17 18:25:34 +00:00
2014-10-24 23:25:44 +00:00
2015-12-27 07:50:11 +00:00
2013-06-13 00:19:30 +00:00
2015-09-20 20:15:44 +00:00
2014-04-02 16:07:48 +00:00
2014-04-05 08:17:48 +00:00
2016-04-18 09:56:41 +00:00
2015-09-20 20:24:28 +00:00
2014-12-13 21:13:28 +00:00
2013-06-13 00:19:30 +00:00
2015-09-14 18:44:13 +00:00
2013-06-13 00:19:30 +00:00
2016-04-18 21:05:15 +00:00
2015-02-25 07:49:15 +00:00
2016-05-22 06:18:59 +00:00
2015-05-05 10:44:17 +00:00
2015-05-01 18:32:16 +00:00
2013-06-13 00:19:30 +00:00
2014-04-13 19:48:28 +00:00
2014-06-23 08:25:03 +00:00
2016-04-30 01:24:24 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-08-18 10:33:46 +00:00
2014-08-13 03:44:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2015-05-01 18:32:16 +00:00
2015-07-25 00:21:29 +00:00
2015-08-29 14:25:01 +00:00
2016-01-14 07:27:42 +00:00
2015-09-20 20:24:28 +00:00
2015-12-22 18:12:11 +00:00
2015-12-22 18:12:11 +00:00
2015-12-22 18:12:11 +00:00
2014-07-15 03:28:37 +00:00