X-shooter Pipeline Reference Manual 3.8.15
Macros | Functions | Variables
xsh_model_randlcg.c File Reference
#include <cpl.h>
#include "xsh_model_kernel.h"
#include <math.h>
#include <limits.h>
#include <xsh_model_randlcg.h>

Go to the source code of this file.

Macros

#define ALL_BITS   0xffffffff
 

Functions

long xsh_set_seed (long int sd)
 
long get_seed (void)
 
unsigned long int xsh_randlcg (void)
 

Variables

static long int the_quotient = LONG_MAX / 16807L
 
static long int the_remainder = LONG_MAX % 16807L
 
static long int seed_val = 1L