aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/random.h
blob: b37963c0f79c6ad98c7029a23696fa559ab75858 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <stddef.h>

#if defined(__cplusplus)
#include <type_traits>

namespace crypto {

  extern "C" {
#endif

  void init_random(void);
  void generate_random_bytes(size_t n, void *result);

#if defined(__cplusplus)
  }
}
#endif