diff options
author | dholland <dholland@NetBSD.org> | 2014-03-22 23:33:33 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2014-03-22 23:33:33 +0000 |
commit | bd35ad093888ab3ff7c529269fe39e0017174a50 (patch) | |
tree | c23498f08d92bfa07dbfdd5eaf2d735fba18aae7 /battlestar/extern.h | |
parent | 82159d673f616b12554c28d5ac54f515fec21e91 (diff) | |
download | bsdgames-darwin-bd35ad093888ab3ff7c529269fe39e0017174a50.tar.gz bsdgames-darwin-bd35ad093888ab3ff7c529269fe39e0017174a50.tar.zst bsdgames-darwin-bd35ad093888ab3ff7c529269fe39e0017174a50.zip |
Use random(), not rand().
Diffstat (limited to 'battlestar/extern.h')
-rw-r--r-- | battlestar/extern.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/battlestar/extern.h b/battlestar/extern.h index 51b407e9..ce9a3127 100644 --- a/battlestar/extern.h +++ b/battlestar/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.35 2014/03/22 23:23:55 dholland Exp $ */ +/* $NetBSD: extern.h,v 1.36 2014/03/22 23:33:33 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -45,7 +45,7 @@ #define BITS (CHAR_BIT * sizeof (unsigned int)) #define OUTSIDE (position > 68 && position < 246 && position != 218) -#define rnd(x) (rand() % (x)) +#define rnd(x) (random() % (x)) #define max(a,b) ((a) < (b) ? (b) : (a)) #define testbit(array, index) (array[index/BITS] & (1U << (index % BITS))) #define setbit(array, index) (array[index/BITS] |= (1U << (index % BITS))) |