From 83818b18a1fa1e8a00332489e31d346101b6fe9e Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 30 Mar 2015 20:56:31 +0200 Subject: Another massive cleanup Drops unused functions, fixes function visibility. --- random.h | 1 + 1 file changed, 1 insertion(+) (limited to 'random.h') diff --git a/random.h b/random.h index 4e0b8c9..29d63cb 100644 --- a/random.h +++ b/random.h @@ -15,6 +15,7 @@ double rand_d01 (randctx * const st); double rand_d11 (randctx * const st); int rand_bool (randctx * const st); +#define vlen(x) (sizeof(x)/sizeof(*x)) #define rand_distrib(st,v) ((v)[rand_u64(st)%vlen(v)]) #define rand_mod(st,max) (rand_u64(st)%(max)) -- cgit v1.2.3