summaryrefslogtreecommitdiff
path: root/orc-test/orcrandom.h
blob: 757b982b86de3f3eff8d7a3fe39ff366b1624355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#ifndef _ORC_RANDOM_H_
#define _ORC_RANDOM_H_

#include <orc/orcutils.h>

ORC_BEGIN_DECLS

typedef struct _OrcRandomContext OrcRandomContext;
struct _OrcRandomContext {
  unsigned int x;
};

void orc_random_init (OrcRandomContext *context, int seed);
void orc_random_bits (OrcRandomContext *context, void *data, int n_bytes);
void orc_random_floats (OrcRandomContext *context, float *data, int n);
unsigned int orc_random (OrcRandomContext *context);

ORC_END_DECLS

#endif