]>
git.ipfire.org Git - thirdparty/systemd.git/blob - klibc/klibc/tests/testrand48.c
6 unsigned short seed1
[] = { 0x1234, 0x5678, 0x9abc };
7 unsigned short *oldseed
;
9 oldseed
= seed48(seed1
);
10 printf("Initial seed: %#06x %#06x %#06x\n",
11 oldseed
[0], oldseed
[1], oldseed
[2]);
13 printf("lrand48() = %ld\n", lrand48());
16 printf("mrand48() = %ld\n", mrand48());