FreeBSD/contrib/ipfilter/arc4random.c
/*
 * Initialize our S-box to its beginning defaults.
 */
Initialize our S-box to its beginning defaults.
Initialize our S - box to its beginning defaults .
static void
arc4_init(void)
{
	int n;
	MD5Init(&md5ctx);
	MUTEX_INIT(&arc4_mtx, "arc4_mtx");
	arc4_i = arc4_j = 0;
	for (n = 0; n < 256; n++)
		arc4_sbox[n] = (u_int8_t) n;
	arc4_t_reseed = 0;
}
static void arc4_init ( void ) { int n ; MD5Init ( & md5ctx ) ; MUTEX_INIT ( & arc4_mtx , " " ) ; arc4_i = arc4_j = 0 ; for ( n = 0 ; n < 256 ; n ++ ) arc4_sbox [ n ] = ( u_int8_t ) n ; arc4_t_reseed = 0 ; }
Initialize our S-box to its beginning defaults.
Initialize our S - box to its beginning defaults .