mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-08-06 05:34:56 -04:00
initial commit
This commit is contained in:
commit
70d61b6662
12 changed files with 1086 additions and 0 deletions
14
random.h
Normal file
14
random.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#ifndef RANDOM_H
|
||||
#define RANDOM_H
|
||||
|
||||
struct random_state {
|
||||
char unused;
|
||||
};
|
||||
|
||||
void get_random_seed(void *buf, size_t size);
|
||||
void random_state_init(struct random_state *state);
|
||||
void get_random_bytes(struct random_state *state, void *buf, size_t size);
|
||||
size_t get_random_size(struct random_state *state);
|
||||
size_t get_random_size_uniform(struct random_state *state, size_t bound);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue