diff options
Diffstat (limited to 'km-rand.c')
-rw-r--r-- | km-rand.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/km-rand.c b/km-rand.c deleted file mode 100644 index e777069..0000000 --- a/km-rand.c +++ /dev/null @@ -1,33 +0,0 @@ -#include <stdbool.h> -#include "util.h" -#include "km.h" - -// fill buffer with N random floats -bool -km_rand_get_floats( - km_rand_t * const rs, - const size_t num_floats, - float * const floats -) { - return rs->cbs->get_floats(rs, num_floats, floats); -} - -// fill buffer with N random size_ts -bool -km_rand_get_sizes( - km_rand_t * const rs, - const size_t num_sizes, - size_t * const sizes -) { - return rs->cbs->get_sizes(rs, num_sizes, sizes); -} - -// finalize random source -void -km_rand_fini( - km_rand_t * const rs -) { - if (rs->cbs->fini) { - rs->cbs->fini(rs); - } -} |