File: arc4random.hh

package info (click to toggle)
dnsdist 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,640 kB
  • sloc: cpp: 91,323; javascript: 24,456; sh: 4,744; python: 1,328; makefile: 832; ansic: 816
file content (21 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include <cstddef>
#include <cinttypes>

#include "config.h"

extern "C"
{
#ifndef HAVE_ARC4RANDOM
  uint32_t arc4random(void);
#endif
#ifndef HAVE_ARC4RANDOM_BUF
  void arc4random_buf(void* buf, size_t nbytes);
#endif
#ifndef HAVE_ARC4RANDOM_UNIFORM
  uint32_t arc4random_uniform(uint32_t upper_bound);
#endif
#ifndef HAVE_EXPLICIT_BZERO
  void explicit_bzero(void*, size_t len);
#endif
}