~donmcc/lrnd

lrnd/lrnd.h -rw-r--r-- 304 bytes
fd8d136bDon McCaughey Created initial project skeleton. 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef LRND_H_INCLUDED
#define LRND_H_INCLUDED

#include <stdbool.h>
#include <stdint.h>


struct lrnd {
    uint32_t const max_value;
    bool (*next_value)(uint32_t *value_out);
};


extern struct lrnd *const lrnd_stdlib_rand;


bool
lrnd_next_value(struct lrnd *lrnd, uint32_t *value_out);


#endif