mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
declare random32 always
This commit is contained in:
parent
b3f026c742
commit
0d8a3beeaf
9
rand.h
9
rand.h
@ -27,16 +27,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifndef RAND_PLATFORM_INDEPENDENT
|
||||
|
||||
uint32_t random32(void);
|
||||
|
||||
#else
|
||||
|
||||
extern uint32_t random32(void);
|
||||
|
||||
#endif /* RAND_PLATFORM_INDEPENDENT */
|
||||
|
||||
uint32_t random_uniform(uint32_t n);
|
||||
void random_buffer(uint8_t *buf, size_t len);
|
||||
void random_permute(char *buf, size_t len);
|
||||
|
Loading…
Reference in New Issue
Block a user