summaryrefslogtreecommitdiff
path: root/src/common/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/random.c')
-rw-r--r--src/common/random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/random.c b/src/common/random.c
index 39990f8a7..224b71fdb 100644
--- a/src/common/random.c
+++ b/src/common/random.c
@@ -43,10 +43,10 @@ void rnd_seed(uint32 seed)
}
-/// Generates a random number in the interval [0, UINT32_MAX]
-uint32 rnd(void)
+/// Generates a random number in the interval [0, SINT32_MAX]
+int32 rnd(void)
{
- return (uint32)genrand_int32();
+ return (int32)genrand_int31();
}