galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Platform.cpp
Go to the documentation of this file.
1
7
8#include <cstdlib>
9#include <ctime>
10
11#include <Raylib.hpp>
12
13#include "Platform.hpp"
14
15namespace galaxy
16{
17 namespace platform
18 {
19 void seed_random() noexcept
20 {
21 const auto seed = static_cast<unsigned int>(std::time(nullptr));
22 std::srand(seed);
23 ray::SetRandomSeed(seed);
24 }
25 } // namespace platform
26} // namespace galaxy
void seed_random() noexcept
Seed the cstdlib rng algos.
Definition Platform.cpp:19
Application.hpp galaxy.