File: bat3.c

package info (click to toggle)
testu01 1.2.3%2Bds1-3
  • links: PTS, VCS
  • area: non-free
  • in suites: sid, trixie
  • size: 17,748 kB
  • sloc: ansic: 52,357; makefile: 248; sh: 53
file content (18 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <testu01/usoft.h>
#include <testu01/unif01.h>
#include <testu01/bbattery.h>

int main (void)
{
   unif01_Gen *gen;
   int n = 1024*1024;

   /* Test the first n bits of binary file vax.bin */
   bbattery_AlphabitFile ("vax.bin", n);

   /* Test the Java random number generator */
   gen = usoft_CreateJava48 (1234567, 1);
   bbattery_Alphabit (gen, n, 0, 32);

   return 0;
}