Merge pull request #34 from janisozaur/patch-1

Add missing include guard
This commit is contained in:
Fletcher Dunn
2019-01-03 05:22:12 -08:00
committed by GitHub
+5
View File
@@ -1,5 +1,8 @@
// Stub for just what we need
#ifndef VSTDLIB_RANDOM_H
#define VSTDLIB_RANDOM_H
#include <stdlib.h>
inline void WeakRandomSeed( int x ) { srand(x); }
@@ -12,3 +15,5 @@ inline int WeakRandomInt( int nMin, int nMax )
return nMin + rand() % ( nMax - nMin + 1 );
}
#endif // VSTDLIB_RANDOM_H