File: rand.c

package info (click to toggle)
tra 20020816-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 1,696 kB
  • ctags: 2,623
  • sloc: ansic: 22,519; makefile: 406; asm: 269
file content (14 lines) | stat: -rw-r--r-- 138 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "os.h"

ulong
fastrand(void)
{
	static int first = 1;

	if(first){
		arc4random_stir();
		first = 0;
	}
	return arc4random();
}