Blender V5.0
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
11
12/* TODO: Check whether we could replace this with BLI rand stuff. */
13
14#include "../system/Precision.h"
15
16#include "MEM_guardedalloc.h"
17
18namespace Freestyle {
19
20class RandGen {
21 public:
22 static real drand48();
23 static void srand48(long seedval);
24
25 private:
26 static void next();
27
28 MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:RandGen")
29};
30
31} /* 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
static ulong * next
inherits from class Rep
Definition AppCanvas.cpp:20
double real
Definition Precision.h:14