Adhemerval Zanella
359653aaac
Do not use HP_TIMING_NOW for random bits
...
This patch removes the HP_TIMING_BITS usage for fast random bits and replace
with clock_gettime (CLOCK_MONOTONIC). It has unspecified starting time and
nano-second accuracy, so its randomness is significantly better than
gettimeofday.
Althoug it should incur in more overhead (specially for architecture that
support hp-timing), the symbol is also common implemented as a vDSO.
Checked on aarch64-linux-gnu, x86_64-linux-gnu, and i686-linux-gnu. I also
checked on a i686-gnu build.
* include/random-bits.h: New file.
* resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
(__res_context_mkquery): Remove usage hp-timing usage and replace with
random_bits.
* resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
* sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
Likewise.
2019-03-22 17:30:39 -03:00
..
2019-01-21 21:26:03 +01:00
2019-03-01 15:26:36 -03:00
2019-01-01 00:11:28 +00:00
2014-12-16 18:18:49 +00:00
2019-02-16 08:25:16 +01:00
2019-01-01 00:11:28 +00:00
2018-06-26 15:27:12 +02:00
2019-02-16 08:25:16 +01:00
2019-03-14 15:44:15 +01:00
2017-10-01 15:21:00 -07:00
2019-01-01 00:11:28 +00:00
2018-06-27 19:20:37 +02:00
2019-01-01 00:11:28 +00:00
2019-02-16 08:25:16 +01:00
2017-10-01 15:10:27 -07:00
2019-03-01 15:21:32 -03:00
2018-02-15 21:00:02 +00:00
2019-02-07 09:03:02 +01:00
2017-10-03 01:33:38 +02:00
2019-01-01 00:11:28 +00:00
2017-05-15 10:23:28 -03:00
2014-12-11 21:41:30 +00:00
2016-10-28 22:40:16 -04:00
2018-02-23 13:54:53 +00:00
2018-04-20 13:57:12 -03:00
2018-06-29 22:39:06 -04:00
2017-09-26 16:53:44 -07:00
2017-11-28 09:57:00 -08:00
2016-09-23 08:43:56 -04:00
2019-03-01 15:24:51 -03:00
2018-03-25 00:48:01 +01:00
2019-03-01 15:26:36 -03:00
2016-09-23 08:43:56 -04:00
2018-06-26 13:22:53 -03:00
2019-02-22 01:32:36 +00:00
2018-09-04 19:52:06 +00:00
2017-11-07 23:49:04 +00:00
2014-12-11 21:41:30 +00:00
2017-10-01 17:52:15 -07:00
2019-02-16 08:25:16 +01:00
2019-02-16 08:25:16 +01:00
2017-04-07 07:45:53 -04:00
2017-10-01 18:02:10 -07:00
2017-10-01 15:15:30 -07:00
2019-01-01 00:11:28 +00:00
2016-04-29 22:18:21 -04:00
2017-10-01 15:13:13 -07:00
2017-10-01 15:19:17 -07:00
2017-09-28 01:05:18 +02:00
2017-10-01 17:35:46 -07:00
2019-01-01 00:11:28 +00:00
2019-01-01 00:11:28 +00:00
2019-01-01 00:11:28 +00:00
2019-03-13 09:42:09 -04:00
2019-02-16 08:25:16 +01:00
2019-01-01 00:11:28 +00:00
2019-03-22 16:52:29 -03:00
2019-01-01 00:11:28 +00:00
2019-01-01 00:11:28 +00:00
2016-09-23 08:43:56 -04:00
2019-01-01 00:11:28 +00:00
2019-01-01 00:11:28 +00:00
2019-01-01 00:11:28 +00:00
2019-01-01 00:11:28 +00:00
2017-10-01 16:00:36 -07:00
2019-01-01 00:11:28 +00:00
2018-09-27 20:04:48 +00:00
2016-09-23 08:43:56 -04:00
2017-10-01 17:37:42 -07:00
2018-11-16 09:21:14 -02:00
2015-06-17 20:19:04 +00:00
2017-10-01 15:21:00 -07:00
2017-11-23 14:08:11 +01:00
2016-09-23 08:43:56 -04:00
2017-10-01 17:31:05 -07:00
2017-08-22 07:50:57 -07:00
2015-06-17 20:16:56 +00:00
2016-09-23 08:43:56 -04:00
2017-10-01 15:13:13 -07:00
2019-03-22 17:30:39 -03:00
2019-02-16 08:25:16 +01:00
2017-10-01 15:53:15 -07:00
2019-02-16 08:25:16 +01:00
2017-11-22 22:21:10 +00:00
2019-01-01 00:11:28 +00:00
2018-12-07 12:47:41 -08:00
2019-01-01 00:11:28 +00:00
2017-10-01 16:06:58 -07:00
2019-01-01 00:11:28 +00:00
2018-04-05 09:38:58 +02:00
2017-10-01 15:13:13 -07:00
2019-01-01 00:11:28 +00:00
2017-10-03 01:33:38 +02:00
2018-10-24 15:22:27 -03:00
2019-01-01 00:11:28 +00:00
2019-02-13 13:50:13 +00:00
2019-01-01 00:11:28 +00:00
2019-03-13 09:42:09 -04:00
2016-09-23 08:43:56 -04:00
2019-02-27 09:42:44 -08:00
2018-02-26 18:17:47 +00:00
2018-06-26 15:27:12 +02:00
2017-10-01 17:48:24 -07:00
2019-02-03 09:55:41 +01:00
2016-09-23 08:43:56 -04:00
2018-12-07 20:21:45 +01:00
2017-10-01 15:51:56 -07:00
2019-01-01 00:11:28 +00:00
2018-09-19 17:09:08 -07:00
2019-02-16 08:25:16 +01:00
2019-02-27 10:00:37 -03:00
2017-06-08 13:58:17 -04:00