1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-19 14:08:11 +00:00
trezor-firmware/embed/extmod/modtrezorcrypto/rand.h

20 lines
374 B
C
Raw Normal View History

2016-10-11 12:05:55 +00:00
/*
* Copyright (c) Pavol Rusnak, SatoshiLabs
*
* Licensed under TREZOR License
* see LICENSE file for details
*/
2016-04-27 16:45:00 +00:00
#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);
2016-06-01 15:48:32 +00:00
void random_permute(void *buf, size_t size, size_t count);
2016-04-27 16:45:00 +00:00
#endif