SDL_test_random.h 640 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _SDL_test_random_h
  2. #define _SDL_test_random_h
  3. #include "begin_code.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define SDLTest_RandomInt(c) ((int)SDLTest_Random(c))
  8. typedef struct {
  9. unsigned int a;
  10. unsigned int x;
  11. unsigned int c;
  12. unsigned int ah;
  13. unsigned int al;
  14. } SDLTest_RandomContext;
  15. void SDLTest_RandomInit(SDLTest_RandomContext * rndContext, unsigned int xi,
  16. unsigned int ci);
  17. void SDLTest_RandomInitTime(SDLTest_RandomContext *rndContext);
  18. unsigned int SDLTest_Random(SDLTest_RandomContext *rndContext);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #include "close_code.h"
  23. #endif