code: 9ferno

ref: e81c54ba2ecc673a4d5f8aed0e9b52841fe07b0d
dir: /libsec/port/fastrand.c/

View raw version
#include "os.h"
#include "libsec.h"

/* 
 *  use the X917 random number generator to create random
 *  numbers (faster than truerand() but not as random).
 */
u32
fastrand(void)
{
	u32 x;
	
	genrandom((uchar*)&x, sizeof x);
	return x;
}