asn1 check-der use roken

Rely on roken to determine which random function should be
used.

Rename parameter "rand" to "randbytes" to avoid collision with
functions named "rand()".

Change-Id: Ic07cf149daef1cd568b58277773fbe27aef04f7b
This commit is contained in:
Jeffrey Altman
2013-09-10 21:03:43 -04:00
parent 6bd12cb399
commit 543ca2a93e

View File

@@ -1099,14 +1099,10 @@ struct randomcheck {
};
static void
asn1rand(uint8_t *rand, size_t len)
asn1rand(uint8_t *randbytes, size_t len)
{
while (len) {
#ifdef HAVE_ARC4RANDOM
*rand++ = arc4random();
#else
*rand++ = random();
#endif
*randbytes++ = rk_random();
len--;
}
}