Back to index

glibc  2.9
Functions
lcong48_r.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>

Go to the source code of this file.

Functions

int __lcong48_r (param, struct drand48_data *buffer)

Function Documentation

int __lcong48_r ( param  ,
struct drand48_data *  buffer 
)

Definition at line 26 of file lcong48_r.c.

{
  /* Store the given values.  */
  memcpy (buffer->__x, &param[0], sizeof (buffer->__x));
  buffer->__a = ((uint64_t) param[5] << 32 | (uint32_t) param[4] << 16
               | param[3]);
  buffer->__c = param[6];
  buffer->__init = 1;

  return 0;
}