Difference between pages "r7.1.1:Macro LFDS711 PRNG GENERATE" and "r7.1.1:Macro LFDS711 PRNG ST GENERATE"
(Difference between pages)
Jump to navigation
Jump to search
m (1 revision imported) |
m (1 revision imported) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:macro | {{DISPLAYTITLE:macro LFDS711_PRNG_ST_GENERATE}} | ||
==Source Files== | ==Source Files== | ||
└───liblfds711 | └───liblfds711 | ||
Line 7: | Line 7: | ||
==Opaque Structures== | ==Opaque Structures== | ||
struct [[r7.1.1:struct | struct [[r7.1.1:struct lfds711_prng_st_state|lfds711_prng_st_state]]; | ||
==Macro== | ==Macro== | ||
#define | #define LFDS711_PRNG_ST_GENERATE( prng_st_state, random_value ) | ||
==Parameters== | ==Parameters== | ||
'' | ''prng_st_state'' | ||
: A ''struct | : A ''struct lfds711_prng_st_state''. Not a pointer to it - the struct itself. | ||
''random_value''. | ''random_value''. | ||
Line 25: | Line 25: | ||
The PRNG state is moved on to its next number, and that number is passed through the PRNG mixing function and then written into the argument ''random_value''. | The PRNG state is moved on to its next number, and that number is passed through the PRNG mixing function and then written into the argument ''random_value''. | ||
This is the generate macro for the | This is the generate macro for the single-threaded PRNG variant. | ||
==See Also== | ==See Also== | ||
* [[r7.1.1:PRNG|PRNG]] | * [[r7.1.1:PRNG|PRNG]] |
Latest revision as of 18:12, 16 February 2017
Source Files
└───liblfds711 └───inc └───liblfds711 lfds711_prng.h
Opaque Structures
struct lfds711_prng_st_state;
Macro
#define LFDS711_PRNG_ST_GENERATE( prng_st_state, random_value )
Parameters
prng_st_state
- A struct lfds711_prng_st_state. Not a pointer to it - the struct itself.
random_value.
- A lfds711_pal_uint_t. Not a pointer to it - the varible itself. It will be set by the macro.
Return Value
No return value.
Notes
The PRNG state is moved on to its next number, and that number is passed through the PRNG mixing function and then written into the argument random_value.
This is the generate macro for the single-threaded PRNG variant.