blob: a6608dacd67131d0f868a51ba0bcb86fe6472a0b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
*/
#ifndef __RANDOM_H__
#define __RANDOM_H__
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
bool get_random_bytes(uint8_t *out, size_t len);
uint64_t random_u64();
uint64_t random_bounded(uint64_t bound);
#endif
|