We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4545d02 commit 5b5279eCopy full SHA for 5b5279e
1 file changed
core/src/engine/task/task_processor.cpp
@@ -11,6 +11,7 @@
11
#include <userver/utils/impl/static_registration.hpp>
12
#include <userver/utils/numeric_cast.hpp>
13
#include <userver/utils/rand.hpp>
14
+#include <userver/utils/str_icase.hpp>
15
#include <userver/utils/thread_name.hpp>
16
#include <userver/utils/threads.hpp>
17
#include <utils/statistics/thread_statistics.hpp>
@@ -75,7 +76,13 @@ void EmitMagicNanosleep() {
75
76
77
void TaskProcessorThreadStartedHook() {
78
utils::impl::AssertStaticRegistrationFinished();
79
+
80
+ // uses /dev/urandom
81
utils::WithDefaultRandom([](auto&) {});
82
83
84
+ utils::StrCaseHash hash;
85
86
for (const auto& func : ThreadStartedHooks()) {
87
func();
88
}
0 commit comments