Back to index

glibc  2.9
Functions
jrand48_r.c File Reference
#include <stdlib.h>

Go to the source code of this file.

Functions

int __jrand48_r (xsubi, struct drand48_data *buffer, long int *result)

Function Documentation

int __jrand48_r ( xsubi  ,
struct drand48_data *  buffer,
long int result 
)

Definition at line 23 of file jrand48_r.c.

{
  /* Compute next state.  */
  if (__drand48_iterate (xsubi, buffer) < 0)
    return -1;

  /* Store the result.  */
  *result = (int32_t) ((xsubi[2] << 16) | xsubi[1]);

  return 0;
}

Here is the call graph for this function: