diff options
author | David Timber <mieabby@gmail.com> | 2020-01-01 09:50:34 +1100 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-01-01 09:50:34 +1100 |
commit | ed809a51fdd1c313cd256301ef6f7211e8394cb1 (patch) | |
tree | 81a3054ce0d42976f80c973e2b6ebf9c1b8b7476 /src/proone_rnd.h | |
parent | 6e456edb2757cf9d28d306afb836aa16780fb912 (diff) |
checkpoint
Diffstat (limited to 'src/proone_rnd.h')
-rw-r--r-- | src/proone_rnd.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/proone_rnd.h b/src/proone_rnd.h deleted file mode 100644 index cf46c4d..0000000 --- a/src/proone_rnd.h +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once -#include <stddef.h> -#include <stdint.h> -#include <stdbool.h> - - -struct proone_rnd_engine; -typedef struct proone_rnd_engine proone_rnd_engine_t; -typedef struct proone_rnd_engnie_alloc_result proone_rnd_engnie_alloc_result_t; - -typedef enum { - PROONE_RND_ENGINE_ALLOC_OK, - PROONE_RND_ENGINE_ALLOC_INVALID_SEED, - PROONE_RND_ENGINE_ALLOC_MEM_ERR -} proone_rnd_engine_alloc_result_code_t; - -struct proone_rnd_engnie_alloc_result { - proone_rnd_engine_alloc_result_code_t result; - proone_rnd_engine_t *engine; -}; - - -void proone_init_alloc_rnd_engine_result (proone_rnd_engnie_alloc_result_t *r); -proone_rnd_engnie_alloc_result_t proone_alloc_rnd_engine (const uint32_t *seed); -void proone_free_rnd_engine (proone_rnd_engine_t *engine); -uint32_t proone_rnd_gen_int (proone_rnd_engine_t *engine); -double proone_rnd_gen_double (proone_rnd_engine_t *engine); |