1
0
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:
Pavol Rusnak 2018-01-13 15:16:34 +01:00
parent b3f026c742
commit 0d8a3beeaf
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

9
rand.h
View File

@ -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);