Files
heimdal/lib
Jeffrey Altman 4cf66ae8e4 roken: use Win32 rand_s() for rk_random() when available
On Windows if the compiler and C RTL is >= 1400 then the rand_s()
function is available.  rand_s() unlike rand() makes use of the
RtlGenRandom() API to produce a random number between 0 and UINT_MAX.
If rand_s() is not available or fails, fallback to rand().

One of the benefits of rand_s() is that no initialization is required
so it will provide random output even if rk_random_init() is not called.

Change-Id: I2768155de744bd49604fc8237728bb205d637f2a
2015-04-11 01:35:32 -04:00
..
2015-03-24 11:49:58 -05:00
2015-03-21 15:44:48 -04:00
2015-03-21 15:44:48 -04:00
2014-08-22 20:57:24 -07:00
2015-03-24 11:50:02 -05:00
2015-03-04 19:52:26 -05:00
2014-04-25 02:42:17 +02:00
2015-03-24 11:50:04 -05:00
x
2014-02-16 09:15:26 -08:00
2015-03-21 15:44:48 -04:00
2015-03-21 15:44:48 -04:00
2014-04-25 02:42:17 +02:00
2014-02-18 08:34:32 -08:00
2015-03-21 15:44:48 -04:00
2012-06-20 19:32:08 -05:00