]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Random.h
Remove Random.cpp
[lugaru.git] / Source / Random.h
index 10f66cb257cac6b91648fb1790e0cea00db34101..3d53ebeb66897a533483922314ec1f908fa38cec 100644 (file)
@@ -22,18 +22,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #ifndef _RANDOM_H_
 #define _RANDOM_H_
 
+#include <stdlib.h>
 
-#if defined(__cplusplus)
-extern "C" {
-#endif
-
-
-extern int randSeed;
-short Random ();
-
-
-#if defined(__cplusplus)
+static inline short Random()
+{
+    return rand();
 }
-#endif
 
 #endif