Blender V4.3
RandGen.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
12/* TODO: Check whether we could replace this with BLI rand stuff. */
13
14#include "../system/Precision.h"
15
16#ifdef WITH_CXX_GUARDEDALLOC
17# include "MEM_guardedalloc.h"
18#endif
19
20namespace Freestyle {
21
22class RandGen {
23 public:
24 static real drand48();
25 static void srand48(long seedval);
26
27 private:
28 static void next();
29
30#ifdef WITH_CXX_GUARDEDALLOC
31 MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:RandGen")
32#endif
33};
34
35} /* namespace Freestyle */
Read Guarded memory(de)allocation.
Define the float precision used in the program.
static void srand48(long seedval)
Definition RandGen.cpp:101
static real drand48()
Definition RandGen.cpp:94
inherits from class Rep
Definition AppCanvas.cpp:20
double real
Definition Precision.h:14