/* 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 */