OpENer - Open Source EtherNet/IP(TM) I/O Target Stack  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
xorshiftrandom.h File Reference
#include <stdint.h>
Include dependency graph for xorshiftrandom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint32_t NextXorShiftUint32 (void)
 Returns the next generated pseudo-random number. More...
 
void SetXorShiftSeed (uint32_t seed)
 Sets the initial seed for the XOR shift pseudo-random algorithm. More...
 

Detailed Description

The public interface of the XOR shift pseudo-random number generator

Definition in file xorshiftrandom.h.

Function Documentation

uint32_t NextXorShiftUint32 ( void  )

Returns the next generated pseudo-random number.

Returns
The next pseudo-random number

Definition at line 25 of file xorshiftrandom.c.

References CalculateNextSeed().

Here is the call graph for this function:

void SetXorShiftSeed ( uint32_t  seed)

Sets the initial seed for the XOR shift pseudo-random algorithm.

Parameters
seedThe initial seed value

< File-global variable holding the current seed

Definition at line 11 of file xorshiftrandom.c.