diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-25 13:21:19 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-25 13:21:19 +0100 |
| commit | 8dc182ff87cafe3337490bc8db90a67449b9c837 (patch) | |
| tree | f23e6a63ec1a921270693ecd2b03ddb071ae412c /zahl.h | |
| parent | Rename zsplit_unsigned_fast_small_tainted to zsplit_unsigned_fast_small_auto (diff) | |
| download | libzahl-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |
