aboutsummaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/misc.c b/misc.c
index 48088da..73b9a7b 100644
--- a/misc.c
+++ b/misc.c
@@ -7,23 +7,6 @@
#include "puzzles.h"
-int rand_upto(int limit)
-{
- unsigned long divisor = RAND_MAX / (unsigned)limit;
- unsigned long max = divisor * (unsigned)limit;
- unsigned long n;
-
- assert(limit > 0);
-
- do {
- n = rand();
- } while (n >= max);
-
- n /= divisor;
-
- return (int)n;
-}
-
void free_cfg(config_item *cfg)
{
config_item *i;