aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.mk2
-rw-r--r--libsimple/random.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.mk b/config.mk
index c9919fd..9bafe24 100644
--- a/config.mk
+++ b/config.mk
@@ -5,4 +5,4 @@ CC = cc
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700
CFLAGS = -std=c11 -Wall -Wextra -O2
-LDFLAGS = -s
+LDFLAGS = -s -lm
diff --git a/libsimple/random.h b/libsimple/random.h
index a786661..a3b1739 100644
--- a/libsimple/random.h
+++ b/libsimple/random.h
@@ -22,7 +22,7 @@ libsimple_srand(void) /* TODO add man page */
}
-/* TODO doc, man */
+/* TODO doc, man (libsimple_random_float requires -lm) */
uintmax_t libsimple_random_bits(size_t bits, void *unused);
uintmax_t libsimple_random_unsigned(uintmax_t (*rng)(size_t bits, void *user), void *user, uintmax_t min, uintmax_t max);
intmax_t libsimple_random_signed(uintmax_t (*rng)(size_t bits, void *user), void *user, intmax_t min, intmax_t max);