lrand48 regression test
[libc-test] / src / regression / lrand48-signextend.c
1 // lrand48 should give deterministic results
2 #include <stdlib.h>
3 #include "test.h"
4
5 int main(void)
6 {
7         long r;
8         r = lrand48();
9         if (r != 0) t_error("1st lrand48() got %ld want 0\n", r);
10         r = lrand48();
11         if (r != 2116118) t_error("2nd lrand48() got %ld want 2116118\n", r);
12         r = lrand48();
13         if (r != 89401895) t_error("3rd lrand48() got %ld want 89401895\n", r);
14         return t_status;
15 }