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