ache
c23d573f29
MFC: r300397
...
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.
2016-05-29 06:46:17 +00:00
..
2015-04-04 00:42:09 +00:00
2016-01-15 00:05:58 +00:00
2016-05-20 19:14:15 +00:00
2015-12-22 08:03:23 +00:00
2014-12-31 23:25:37 +00:00
2016-01-04 16:32:21 +00:00
2013-01-01 18:29:25 +00:00
2016-05-29 06:46:17 +00:00
2013-11-29 19:44:30 +00:00
2016-03-18 18:26:07 +00:00
2016-05-05 08:11:36 +00:00
2013-08-31 08:50:45 +00:00
2015-12-05 22:44:07 +00:00
2015-07-03 20:29:04 +00:00
2016-02-11 17:55:17 +00:00
2015-03-02 21:00:54 +00:00
2016-02-01 00:44:29 +00:00
2013-06-30 21:06:47 +00:00
2015-02-08 22:11:24 +00:00
2016-04-11 14:45:36 +00:00
2013-09-03 13:31:43 +00:00
2013-02-26 00:58:44 +00:00
2016-02-20 22:58:33 +00:00
2016-01-09 23:33:44 +00:00
2015-09-14 18:05:27 +00:00
2016-04-20 00:49:37 +00:00
2014-01-09 23:08:56 +00:00
2015-12-04 18:14:31 +00:00
2014-04-24 10:23:35 +00:00
2015-04-30 16:08:47 +00:00
2016-05-13 09:52:39 +00:00
2014-07-29 20:57:38 +00:00
2015-12-26 12:06:52 +00:00
2016-05-28 06:17:35 +00:00
2015-05-18 10:45:18 +00:00
2013-06-18 04:50:20 +00:00
2014-08-21 17:32:38 +00:00
2016-05-25 15:10:07 +00:00
2014-12-21 11:11:17 +00:00
2015-02-20 11:52:46 +00:00
2015-12-31 03:28:14 +00:00
2014-10-19 12:11:25 +00:00
2016-05-23 05:14:26 +00:00
2015-01-26 03:26:37 +00:00
2016-01-14 22:02:21 +00:00
2015-02-20 20:02:47 +00:00
2016-02-10 00:08:51 +00:00
2013-05-12 22:22:12 +00:00
2015-05-13 11:32:55 +00:00
2014-08-08 14:53:01 +00:00
2015-06-16 02:31:11 +00:00
2015-07-09 04:58:56 +00:00
2013-11-14 09:25:29 +00:00
2016-01-20 22:05:49 +00:00
2015-03-05 09:01:46 +00:00
2013-05-12 22:22:12 +00:00
2016-05-12 06:53:22 +00:00
2013-08-17 14:42:40 +00:00
2014-07-19 23:44:57 +00:00
2016-02-17 11:38:43 +00:00
2015-10-03 16:21:53 +00:00
2016-05-20 06:35:14 +00:00
2016-02-01 14:56:11 +00:00
2015-12-04 19:16:56 +00:00
2013-10-23 18:07:07 +00:00
2015-10-03 16:21:53 +00:00
2016-04-22 21:32:01 +00:00
2015-10-03 18:40:27 +00:00
2013-12-28 20:05:31 +00:00
2016-02-01 23:07:31 +00:00