kd2bwzgen

golden sun rng routine

Jul 18th, 2018
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. #include <stdint.h>
  2. static uint32_t next = 0;
  3. uint32_t rand() {
  4. next = next * 1103515245 + 12345;
  5. return (next & 4294967295);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment