X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FRandom.h;h=3d53ebeb66897a533483922314ec1f908fa38cec;hb=92988d26b0a3342e9934570d896311c38d94f4fd;hp=10f66cb257cac6b91648fb1790e0cea00db34101;hpb=a1df5b15ec0673ba639adfbdb3b74e3a25a30f07;p=lugaru.git diff --git a/Source/Random.h b/Source/Random.h index 10f66cb..3d53ebe 100644 --- a/Source/Random.h +++ b/Source/Random.h @@ -22,18 +22,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef _RANDOM_H_ #define _RANDOM_H_ +#include -#if defined(__cplusplus) -extern "C" { -#endif - - -extern int randSeed; -short Random (); - - -#if defined(__cplusplus) +static inline short Random() +{ + return rand(); } -#endif #endif