File: rng-double.h

package info (click to toggle)
libmypaint 1.6.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,904 kB
  • sloc: ansic: 5,953; sh: 4,418; makefile: 292; python: 210
file content (26 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef RNGDOUBLE_H
#define RNGDOUBLE_H

#include "mypaint-config.h"

#if MYPAINT_CONFIG_USE_GLIB
#include <glib.h>
#else // not MYPAINT_CONFIG_USE_GLIB
#include "mypaint-glib-compat.h"
#endif


G_BEGIN_DECLS

typedef struct RngDouble RngDouble;

RngDouble* rng_double_new(long seed);
void rng_double_free(RngDouble *self);

void rng_double_set_seed(RngDouble *self, long seed);
double rng_double_next(RngDouble* self);
void rng_double_get_array(RngDouble *self, double aa[], int n);

G_END_DECLS

#endif // RNGDOUBLE_H