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
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright (c) 2017, Rockwell Automation, Inc.
3  * All rights reserved.
4  *
5  ******************************************************************************/
6 
12 #include <stdint.h>
13 
14 #ifndef OPENER_XORSHIFTRANDOM_H_
15 #define OPENER_XORSHIFTRANDOM_H_
16 
21 void SetXorShiftSeed(uint32_t seed);
22 
27 uint32_t NextXorShiftUint32(void);
28 
29 #endif /* OPENER__XORSHIFTRANDOM_H_ */
void SetXorShiftSeed(uint32_t seed)
Sets the initial seed for the XOR shift pseudo-random algorithm.
uint32_t NextXorShiftUint32(void)
Returns the next generated pseudo-random number.