From 044a87b1c4a4e380524ca20777e860cbde5599ff Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 13 Feb 2023 21:55:19 -0600 Subject: [PATCH] [nostalgia/studio] Seed UUID generator at the start of Studio --- src/nostalgia/studio/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/nostalgia/studio/main.cpp b/src/nostalgia/studio/main.cpp index 4771145a..b40aeecf 100644 --- a/src/nostalgia/studio/main.cpp +++ b/src/nostalgia/studio/main.cpp @@ -2,6 +2,8 @@ * Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved. */ +#include + #include #include #include @@ -57,7 +59,11 @@ static ox::Error run(ox::UniquePtr fs) noexcept { static ox::Error run(int, const char**) noexcept { ox::trace::init(); - ox::UUID::seedGenerator({}); + const auto time = std::time(nullptr); + ox::UUID::seedGenerator({ + static_cast(time), + static_cast(time << 1) + }); loadModules(); return run(ox::UniquePtr(nullptr)); }