Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
bbsrand.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <limits.h>
#include "bbs_rand.h"

Go to the source code of this file.


#define NUM_TESTS   100


int main (void)

Define Documentation

#define NUM_TESTS   100

Definition at line 51 of file bbsrand.c.

Function Documentation

int main ( void  )


Definition at line 53 of file bbsrand.c.

  unsigned int   seed, result, ix;

  seed = time(NULL);
  bbs_srand((unsigned char *)&seed, sizeof(seed));

  for(ix = 0; ix < NUM_TESTS; ix++) {
    result = bbs_rand();
    printf("Test %3u: %08X\n", ix + 1, result);

  return 0;

Here is the call graph for this function: