mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-17 11:58:13 +00:00
Add finalize_rand()
This commit is contained in:
parent
fb747384a0
commit
661751ab4b
6
rand.c
6
rand.c
@ -33,6 +33,12 @@ void init_rand(void)
|
||||
f = fopen("/dev/urandom", "r");
|
||||
}
|
||||
|
||||
void finalize_rand(void)
|
||||
{
|
||||
fclose(f);
|
||||
f = NULL;
|
||||
}
|
||||
|
||||
uint32_t random32(void)
|
||||
{
|
||||
uint32_t r;
|
||||
|
Loading…
Reference in New Issue
Block a user