mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01:49 +00:00
Random seed fix
This commit is contained in:
parent
9cf76f2d45
commit
090985f99f
1 changed files with 2 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ namespace fs = std::filesystem;
|
||||||
using namespace gui;
|
using namespace gui;
|
||||||
|
|
||||||
inline uint64_t randU64() {
|
inline uint64_t randU64() {
|
||||||
|
srand(time(NULL));
|
||||||
return rand() ^ (rand() << 8) ^
|
return rand() ^ (rand() << 8) ^
|
||||||
(rand() << 16) ^ (rand() << 24) ^
|
(rand() << 16) ^ (rand() << 24) ^
|
||||||
((uint64_t)rand() << 32) ^
|
((uint64_t)rand() << 32) ^
|
||||||
|
|
@ -458,4 +459,5 @@ void menus::create_menus(Engine* engine, PagesControl* menu) {
|
||||||
|
|
||||||
void menus::refresh_menus(Engine* engine, PagesControl* menu) {
|
void menus::refresh_menus(Engine* engine, PagesControl* menu) {
|
||||||
create_main_menu_panel(engine, menu);
|
create_main_menu_panel(engine, menu);
|
||||||
|
create_new_world_panel(engine, menu);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue