aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2024-01-10 12:33:31 +0100
committerGitHub <[email protected]>2024-01-10 12:33:31 +0100
commit304ff53705d6a0f5140ba9e82ce66d6d7f9cb554 (patch)
tree306cfc79a45a0aac74124db358a3c2584bbfed89 /src/zencore/include
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-304ff53705d6a0f5140ba9e82ce66d6d7f9cb554.tar.xz
zen-304ff53705d6a0f5140ba9e82ce66d6d7f9cb554.zip
remove use of <random> in stats (#628)
the previous implementation was quite slow due to use of mt and uniform_distribution.
Diffstat (limited to 'src/zencore/include')
-rw-r--r--src/zencore/include/zencore/stats.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zencore/include/zencore/stats.h b/src/zencore/include/zencore/stats.h
index 7e745dc16..f232cf2f4 100644
--- a/src/zencore/include/zencore/stats.h
+++ b/src/zencore/include/zencore/stats.h
@@ -7,7 +7,8 @@
#include <zenbase/concepts.h>
#include <atomic>
-#include <random>
+#include <string_view>
+#include <vector>
namespace zen {
class CbObjectWriter;