sys/kern/kern_nrandom.c
u_int
read_random(void *buf, u_int nbytes)
{
	u_int i;

	spin_lock(&rand_spin);
	for (i = 0; i < nbytes; ++i) 
		((u_char *)buf)[i] = IBAA_Byte();
	spin_unlock(&rand_spin);
	add_interrupt_randomness(0);
	return(i);
}
/*
 * Heavy weight random number generator.  May return less then the
 * requested number of bytes.
 */
Heavy weight random number generator.  May return less then the
requested number of bytes.
Heavy weight random number generator . May return less then the requested number of bytes .
u_int
read_random(void *buf, u_int nbytes)
{
	u_int i;
	spin_lock(&rand_spin);
	for (i = 0; i < nbytes; ++i) 
		((u_char *)buf)[i] = IBAA_Byte();
	spin_unlock(&rand_spin);
	add_interrupt_randomness(0);
	return(i);
}
u_int read_random ( void * buf , u_int nbytes ) { u_int i ; spin_lock ( & rand_spin ) ; for ( i = 0 ; i < nbytes ; ++ i ) ( ( u_char * ) buf ) [ i ] = IBAA_Byte ( ) ; spin_unlock ( & rand_spin ) ; add_interrupt_randomness ( 0 ) ; return ( i ) ; }
Heavy weight random number generator.
Heavy weight random number generator .