Alexander Motin
3a57f08b50
Fix race between first rand(3) calls with _once().
...
Before this patch there was a chance for thread that called rand(3)
slightly later to see rand3_state already allocated, but not yet
initialized. While this API is not expected to be thread-safe, it
is not expected to crash. ztest on 64-thread system reproduced it
reliably for me.
Submitted by: avg@
MFC after: 1 month
2021-07-21 11:32:22 -04:00
..
2020-09-06 09:08:06 +00:00
2018-05-29 02:41:32 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2019-04-15 13:03:09 +00:00
2017-11-20 19:49:47 +00:00
2020-04-01 22:50:41 +00:00
2017-11-20 19:49:47 +00:00
2020-04-01 22:50:41 +00:00
2018-06-13 08:52:17 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2019-07-17 19:29:55 +00:00
2020-10-16 17:51:09 +00:00
2017-11-20 19:49:47 +00:00
2020-04-10 09:27:18 +00:00
2017-11-20 19:49:47 +00:00
2017-11-25 17:12:48 +00:00
2020-05-19 11:05:27 +00:00
2021-01-19 21:23:25 +00:00
2021-01-19 21:23:25 +00:00
2017-11-20 19:49:47 +00:00
2017-11-25 17:12:48 +00:00
2017-11-20 19:49:47 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2020-10-17 04:14:38 +00:00
2021-01-20 09:56:01 +00:00
2020-10-17 04:14:38 +00:00
2020-10-20 01:29:45 +00:00
2020-01-20 11:40:07 +00:00
2020-01-20 18:43:10 +00:00
2021-02-18 14:02:48 +00:00
2017-11-04 10:52:58 +00:00
2017-11-25 17:12:48 +00:00
2017-11-20 19:49:47 +00:00
2020-02-01 20:33:23 +00:00
2021-07-21 11:32:22 -04:00
2020-02-01 20:33:23 +00:00
2020-02-01 20:33:23 +00:00
2020-02-01 20:33:23 +00:00
2019-12-04 16:56:11 +00:00
2020-02-20 16:58:19 +00:00
2018-08-19 14:39:57 +00:00
2017-08-12 15:18:17 +00:00
2020-09-02 20:04:26 +00:00
2017-11-20 19:49:47 +00:00
2018-01-31 03:05:14 +00:00
2018-02-02 16:47:32 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2020-10-20 01:29:45 +00:00
2020-12-19 14:54:28 +00:00
2017-11-20 19:49:47 +00:00
2017-07-14 17:27:15 +00:00