Kalle Olavi Niemitalo
7a72a685e5
1008: Centralize random numbers.
...
If ELinks is being linked with SSL library, use its random number
generator.
Otherwise, try /dev/urandom and /dev/prandom. If they do not work,
fall back to rand(), calling srand() only once. This fallback is
mostly interesting for the Hurd and Microsoft Windows.
BitTorrent piece selection and dom/test/html-mangle.c still use rand()
(but not srand()) directly. Those would not benefit from being
unpredictable, I think.
2008-05-25 18:44:21 +03:00
..
2005-11-15 11:33:27 +01:00
2007-07-27 13:10:50 +03:00
2006-06-14 14:41:59 +02:00
2007-07-27 14:14:00 +03:00
2007-09-14 11:49:03 +02:00
2005-10-21 09:14:07 +02:00
2008-01-26 17:53:14 +02:00
2008-01-26 17:53:14 +02:00
2005-10-21 09:14:07 +02:00
2007-07-27 14:14:00 +03:00
2007-07-27 14:14:00 +03:00
2007-07-27 13:10:50 +03:00
2005-11-15 11:33:27 +01:00
2007-07-27 13:10:50 +03:00
2007-07-27 13:10:50 +03:00
2008-01-26 17:52:22 +02:00
2008-01-26 17:52:22 +02:00
2008-03-29 18:41:22 +02:00
2007-07-31 13:47:12 +03:00
2007-07-27 14:14:00 +03:00
2007-07-27 14:14:00 +03:00
2007-07-29 12:55:25 +03:00
2008-05-25 18:44:21 +03:00
2007-07-27 13:10:50 +03:00
2007-07-31 13:47:12 +03:00
2007-07-27 13:10:50 +03:00
2007-07-27 13:10:50 +03:00
2007-01-02 21:25:20 +02:00
2007-09-14 15:12:32 +02:00
2005-11-15 11:33:27 +01:00
2007-07-27 13:10:50 +03:00
2007-07-31 13:47:12 +03:00
2007-09-14 15:14:34 +02:00
2008-05-25 18:44:21 +03:00
2008-05-25 18:44:21 +03:00
2008-01-26 18:20:17 +02:00
2008-01-26 18:20:17 +02:00
2007-09-14 15:12:32 +02:00
2007-07-27 13:10:50 +03:00
2005-10-21 09:14:07 +02:00
2006-01-21 08:44:19 +01:00
2005-10-21 09:14:07 +02:00
2005-11-15 11:33:27 +01:00
2007-09-03 21:01:11 +03:00
2007-07-27 14:14:00 +03:00
2007-08-28 20:34:17 +02:00
2007-07-27 14:14:00 +03:00
2007-07-27 14:14:00 +03:00