[nostalgia/studio] Seed UUID generator at the start of Studio
This commit is contained in:
parent
53229b05da
commit
044a87b1c4
@ -2,6 +2,8 @@
|
|||||||
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
* Copyright 2016 - 2023 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <ctime>
|
||||||
|
|
||||||
#include <ox/logconn/logconn.hpp>
|
#include <ox/logconn/logconn.hpp>
|
||||||
#include <ox/std/trace.hpp>
|
#include <ox/std/trace.hpp>
|
||||||
#include <ox/std/uuid.hpp>
|
#include <ox/std/uuid.hpp>
|
||||||
@ -57,7 +59,11 @@ static ox::Error run(ox::UniquePtr<ox::FileSystem> fs) noexcept {
|
|||||||
|
|
||||||
static ox::Error run(int, const char**) noexcept {
|
static ox::Error run(int, const char**) noexcept {
|
||||||
ox::trace::init();
|
ox::trace::init();
|
||||||
ox::UUID::seedGenerator({});
|
const auto time = std::time(nullptr);
|
||||||
|
ox::UUID::seedGenerator({
|
||||||
|
static_cast<uint64_t>(time),
|
||||||
|
static_cast<uint64_t>(time << 1)
|
||||||
|
});
|
||||||
loadModules();
|
loadModules();
|
||||||
return run(ox::UniquePtr<ox::FileSystem>(nullptr));
|
return run(ox::UniquePtr<ox::FileSystem>(nullptr));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user