aboutsummaryrefslogtreecommitdiffstats
path: root/zahl.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-25 13:21:19 +0100
committerMattias Andrée <maandree@kth.se>2016-03-25 13:21:19 +0100
commit8dc182ff87cafe3337490bc8db90a67449b9c837 (patch)
treef23e6a63ec1a921270693ecd2b03ddb071ae412c /zahl.h
parentRename zsplit_unsigned_fast_small_tainted to zsplit_unsigned_fast_small_auto (diff)
downloadlibzahl-8dc182ff87cafe3337490bc8db90a67449b9c837.tar.gz
libzahl-8dc182ff87cafe3337490bc8db90a67449b9c837.tar.bz2
libzahl-8dc182ff87cafe3337490bc8db90a67449b9c837.tar.xz
zrand: add MODUNIFORM and add tests for QUASIUNIFORM and MODUNIFORM
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--zahl.h3
1 files changed, 2 insertions, 1 deletions
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 {