Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. int gamerand(void)
  2. {
  3.     s_GameRand_High = (s_GameRand_High << 16) + (s_GameRand_High >> 16);
  4.     s_GameRand_High += s_GameRand_Low;
  5.     s_GameRand_Low += s_GameRand_High;
  6.     return s_GameRand_High;
  7. }
  8. void sgamerand(unsigned int seed)
  9. {
  10.         s_GameRand_High = seed;
  11.         s_GameRand_Low = seed ^ 0x49616E42;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement