blob: 307d7f7bf48227a854e04c711fbfce3700e3be6e (
plain)
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
27
28
29
30
31
32
33
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
/** \file
* \ingroup freestyle
* \brief Pseudo-random number generator
*/
// TODO: Check whether we could replace this with BLI rand stuff...
#include "../system/Precision.h"
#ifdef WITH_CXX_GUARDEDALLOC
# include "MEM_guardedalloc.h"
#endif
namespace Freestyle {
class RandGen {
public:
static real drand48();
static void srand48(long seedval);
private:
static void next();
#ifdef WITH_CXX_GUARDEDALLOC
MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:RandGen")
#endif
};
} /* namespace Freestyle */
|