mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-30 03:18:20 +00:00
13 lines
240 B
C
13 lines
240 B
C
|
#ifndef __RAND_H__
|
||
|
#define __RAND_H__
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
uint32_t random32(void);
|
||
|
uint32_t random_uniform(uint32_t n);
|
||
|
void random_buffer(uint8_t *buf, size_t len);
|
||
|
void random_permute(char *buf, size_t len);
|
||
|
|
||
|
#endif
|