From 8dc182ff87cafe3337490bc8db90a67449b9c837 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Mar 2016 13:21:19 +0100 Subject: zrand: add MODUNIFORM and add tests for QUASIUNIFORM and MODUNIFORM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- zahl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zahl.h') diff --git a/zahl.h b/zahl.h index cd41b7b..1ac6237 100644 --- a/zahl.h +++ b/zahl.h @@ -53,7 +53,8 @@ enum zranddev { enum zranddist { QUASIUNIFORM = 0, /* Almost uniformly random, per the usual recommendation. */ - UNIFORM /* Actually uniformly random. */ + UNIFORM, /* Actually uniformly random. */ + MODUNIFORM /* Almost uniformly random, using the naïve approach of modulation. */ }; enum zerror { -- cgit v1.2.3-70-g09d2