djbdnscurve6 46
djbdnscurve6
Loading...
Searching...
No Matches
dns_random.c File Reference
#include <unistd.h>
#include "taia.h"
#include "uint_t.h"
#include "dns.h"
#include "open.h"
#include "logmsg.h"
#include "curve.h"
Include dependency graph for dns_random.c:

Go to the source code of this file.

Macros

#define ROTATE(x, b)
#define MUSH(i, b)

Functions

void surf (void)
void dns_random_init (const char data[128])
unsigned int dns_random (unsigned int n)
void randombytes (uint8 *x, unsigned long long xlen)
int crypto_random_init (void)
unsigned int crypto_random (unsigned int n)

Variables

int global_urandom_fd

Macro Definition Documentation

◆ MUSH

#define MUSH ( i,
b )
Value:
x = t[i] += (((x ^ seed[i]) + sum) ^ ROTATE(x,b));
buffer b
Definition auto-str.c:5
#define ROTATE(x, b)
Definition dns_random.c:15
struct tcpclient t[QUERY_MAXTCP]
struct line * x

Definition at line 16 of file dns_random.c.

◆ ROTATE

#define ROTATE ( x,
b )
Value:
(((x) << (b)) | ((x) >> (32 - (b))))

Definition at line 15 of file dns_random.c.

Function Documentation

◆ crypto_random()

unsigned int crypto_random ( unsigned int n)

Definition at line 101 of file dns_random.c.

Here is the call graph for this function:

◆ crypto_random_init()

int crypto_random_init ( void )

Definition at line 90 of file dns_random.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dns_random()

unsigned int dns_random ( unsigned int n)

Definition at line 56 of file dns_random.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dns_random_init()

void dns_random_init ( const char data[128])

Definition at line 37 of file dns_random.c.

Here is the caller graph for this function:

◆ randombytes()

void randombytes ( uint8 * x,
unsigned long long xlen )

Definition at line 73 of file dns_random.c.

Here is the caller graph for this function:

◆ surf()

void surf ( void )

Definition at line 18 of file dns_random.c.

Here is the caller graph for this function:

Variable Documentation

◆ global_urandom_fd

int global_urandom_fd

Definition at line 69 of file dns_random.c.