Subversion Repositories planix.SVN

Rev

Rev 33 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 7u83 1
#include "os.h"
2
#include <libsec.h>
2 - 3
 
4
/* 
5
 *  use the X917 random number generator to create random
6
 *  numbers (faster than truerand() but not as random).
7
 */
8
ulong
9
fastrand(void)
10
{
11
	ulong x;
12
 
13
	genrandom((uchar*)&x, sizeof x);
14
	return x;
15
}