aboutsummaryrefslogtreecommitdiffstats
path: root/src/zrand.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix warnings (that were not turned on by default)Mattias Andrée2016-04-081-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add rand(3), lrand(3), and random(3) to zrandMattias Andrée2016-03-271-28/+133
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zrand: add DEFAULT_RANDOM and FASTEST_RANDOMMattias Andrée2016-03-251-0/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* zrand: add MODUNIFORM and add tests for QUASIUNIFORM and MODUNIFORMMattias Andrée2016-03-251-0/+8
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Mostly optimisationsMattias Andrée2016-03-141-4/+4
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Multiple changes:Mattias Andrée2016-03-131-9/+9
| | | | | | | | | | | | | | | | 1) Compile test with -O0, it takes too long otherwise. 2) Add error codes: ZERROR_0_POW_0, ZERROR_0_DIV_0, ZERROR_DIV_0, ZERROR_NEGATIVE. 3) Add workaround for a bug in clang (src/allocator.c). 4) Cleanups. 5) Minor optimisations. 6) Add inclusion guard for zahl.h. Signed-off-by: Mattias Andrée <maandree@kth.se>
* OptimisationsMattias Andrée2016-03-131-3/+3
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Clean up, add zerror and zperror, fix bugs and add more testsMattias Andrée2016-03-041-10/+6
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Clean up, fix a few bugs, and add a testMattias Andrée2016-03-041-7/+16
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add makefile and fix errorsMattias Andrée2016-03-041-5/+7
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add zrandMattias Andrée2016-03-031-0/+95
Signed-off-by: Mattias Andrée <maandree@kth.se>