aboutsummaryrefslogtreecommitdiff
path: root/mp/src/common/randoverride.cpp
blob: b3e5bd51f8a0202885125f998b437972927619e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#if !defined(_STATIC_LINKED) || defined(_SHARED_LIB)

#include "stdlib.h"
#include "vstdlib/random.h"

// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"

#ifdef GNUC
#define __cdecl 
#endif

void __cdecl srand(unsigned int)
{
}

int __cdecl rand()
{
	return RandomInt( 0, VALVE_RAND_MAX );
}

#endif // !_STATIC_LINKED || _SHARED_LIB