Michael Niedermayer
01d245ef43
random_seed: Rewrite the generic clock() based seed code
...
The new code is faster and reuses the previous state in case of
multiple calls.
The previous code could easily end up in near-infinite loops,
if the difference between two clock() calls never was larger than
1.
This makes fate-parseutils finish in finite time when run in wine,
if CryptGenRandom isn't available (which e.g. isn't available if
targeting Windows RT/metro).
Patch originally by Michael Niedermayer but with some modifications
by Martin Storsjö.
Signed-off-by: Martin Storsjö <martin@martin.st >
2014-01-06 18:53:58 +02:00
..
2013-08-29 11:24:14 +02:00
2011-03-19 13:33:20 +00:00
2011-03-19 13:33:20 +00:00
2012-05-09 13:45:22 +01:00
2013-08-28 23:54:15 +02:00
2011-03-19 13:33:20 +00:00
2013-02-20 00:45:30 +01:00
2013-10-25 19:36:55 +01:00
2011-12-08 01:01:00 +01:00
2011-11-22 17:16:02 +01:00
2012-10-11 23:35:27 +03:00
2012-10-11 23:35:27 +03:00
2013-03-09 08:36:40 +01:00
2013-03-08 12:00:06 +02:00
2013-03-08 12:00:06 +02:00
2013-12-20 11:23:13 +01:00
2013-12-20 11:23:13 +01:00
2013-11-03 11:51:40 +01:00
2012-08-15 22:32:06 +03:00
2012-04-20 09:43:11 -04:00
2012-11-11 13:35:12 -05:00
2011-05-21 13:48:10 +02:00
2013-10-23 13:17:23 +02:00
2013-03-07 15:16:26 +02:00
2013-12-29 22:52:04 +01:00
2013-10-25 11:06:32 +01:00
2011-11-22 17:16:02 +01:00
2013-09-10 12:38:41 +02:00
2012-07-04 15:10:57 +03:00
2011-12-12 12:14:14 +00:00
2013-03-08 07:33:28 +01:00
2013-03-08 07:33:28 +01:00
2013-04-30 13:33:43 -04:00
2013-11-23 21:55:52 +01:00
2014-01-05 16:41:56 +01:00
2011-03-19 13:33:20 +00:00
2013-11-23 21:55:52 +01:00
2013-08-28 23:54:14 +02:00
2013-11-23 21:55:52 +01:00
2013-10-25 19:36:55 +01:00
2013-02-11 16:48:44 +01:00
2012-11-16 10:38:23 +01:00
2013-09-10 12:38:41 +02:00
2011-09-21 08:28:20 +02:00
2013-03-07 15:16:36 +02:00
2013-01-25 17:20:03 +01:00
2012-10-21 22:38:21 +02:00
2013-12-25 00:12:05 +01:00
2013-07-27 16:00:41 +02:00
2011-12-11 00:32:25 +01:00
2013-07-06 14:28:06 +02:00
2012-10-23 07:33:05 +02:00
2013-08-10 00:53:33 +03:00
2013-08-10 00:53:33 +03:00
2012-08-15 22:32:06 +03:00
2013-09-10 12:38:41 +02:00
2013-01-23 11:17:32 +02:00
2013-12-09 08:45:08 +01:00
2014-01-05 16:41:56 +01:00
2013-05-04 22:48:05 +02:00
2013-01-15 11:54:19 +02:00
2013-05-15 07:46:51 +02:00
2012-10-13 19:59:20 +02:00
2013-12-09 11:47:43 +01:00
2012-07-02 14:05:40 +03:00
2012-11-05 15:32:29 -05:00
2012-11-05 15:32:29 -05:00
2012-10-23 16:54:08 +02:00
2012-10-01 10:24:28 +02:00
2012-10-06 09:27:11 +02:00
2012-10-23 07:33:05 +02:00
2012-10-23 12:00:21 +01:00
2013-06-29 13:23:57 +02:00
2013-06-29 13:23:57 +02:00
2012-10-12 20:39:17 +02:00
2013-07-04 21:25:11 +02:00
2013-10-05 18:09:45 +02:00
2013-03-15 12:52:31 +01:00
2012-10-25 11:36:57 +02:00
2013-12-29 22:52:04 +01:00
2013-12-29 22:52:04 +01:00
2014-01-03 16:39:30 +01:00
2012-07-01 19:06:13 +03:00
2012-12-04 21:40:22 +01:00
2012-10-11 23:35:27 +03:00
2013-11-14 09:42:22 +01:00
2013-11-14 09:42:22 +01:00
2013-11-13 21:07:45 +01:00
2013-10-27 21:40:33 +01:00
2013-08-02 19:19:02 +02:00
2013-12-12 16:10:14 +01:00
2011-12-12 23:06:23 +01:00
2013-11-13 21:07:45 +01:00
2013-10-03 17:53:51 +02:00
2013-11-13 21:07:45 +01:00
2014-01-06 18:53:58 +02:00
2011-11-22 17:16:02 +01:00
2013-05-15 23:01:21 +02:00
2012-08-05 17:46:41 +01:00
2011-03-19 13:33:20 +00:00
2011-06-24 00:37:49 +02:00
2012-10-23 07:33:05 +02:00
2012-10-23 07:33:05 +02:00
2013-05-04 22:48:05 +02:00
2012-10-11 23:35:27 +03:00
2013-12-09 16:02:43 +01:00
2013-12-17 09:34:08 +01:00
2013-09-10 12:38:41 +02:00
2012-06-22 17:15:18 +01:00
2012-08-15 22:32:06 +03:00
2013-10-24 10:59:26 +01:00
2013-07-31 18:14:08 +02:00
2013-12-29 22:52:04 +01:00
2014-01-05 16:41:56 +01:00
2013-09-10 12:38:41 +02:00
2012-08-09 20:05:55 +02:00