File: orcrandom.h

package info (click to toggle)
orc 1:0.4.6-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,856 kB
  • ctags: 2,889
  • sloc: ansic: 29,000; sh: 10,220; xml: 2,508; makefile: 196
file content (22 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (6)
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