Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
587 B

  1. //========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef _PS3
  7. #if !defined(_STATIC_LINKED) || defined(_SHARED_LIB)
  8. #include "stdlib.h"
  9. #include "vstdlib/random.h"
  10. // memdbgon must be the last include file in a .cpp file!!!
  11. #include "tier0/memdbgon.h"
  12. #ifdef GNUC
  13. #define __cdecl
  14. #endif
  15. void __cdecl srand(unsigned int)
  16. {
  17. }
  18. int __cdecl rand()
  19. {
  20. return RandomInt( 0, VALVE_RAND_MAX );
  21. }
  22. #endif // !_STATIC_LINKED || _SHARED_LIB
  23. #endif // PS3