summaryrefslogtreecommitdiff
path: root/test/stdlib/testarc4random.c
blob: 4d773aa4b8c3f4a33516d9e0fa187ccf2f122f8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>
#include <stdio.h>

int main(void)
{
#ifdef __UCLIBC_HAS_ARC4RANDOM__
	int random_number;
	random_number = arc4random() % 65536;
	printf("%d\n", random_number);
#endif
	return 0;
}