
PRNG 32 A
It's the fastest 32-bit, sequential PRNG versus Xorshift32.
Algorithm
Source
#include <stdint.h>
struct eightomic_prng_32_a_s {
uint32_t a;
uint32_t b;
};
uint32_t eightomic_prng_32_a(struct eightomic_prng_32_a_s *s) {
s->a = ((s->a << 13) | (s->a >> 19)) ^ s->b;
s->b += 1111111111;
return s->a + (s->b << 1);
}
License
It's free and open source.
Reference
eightomic_prng_32_a() is the randomization function that accepts the following argument.
1: s is the struct eightomic_prng_32_a_s pointer with 2 32-bit unsigned integers s->a and s->b. Each must be initialized with any combination of values.
The return value data type is uint32_t.
It returns the 32-bit unsigned integer pseudorandom number result.
Explanation
The full description is in progress.