Ignore GetUsername() failures in THostEntropy ctor
GetUserName() may fail e.g. when sssd_be crashes and restarts.
Not catching the exception in THostEntropy causes the whole program to crash with std::terminate.
@@ -75,7 +75,11 @@ namespace {
out.Write(&ru, sizeof(ru));
}
+ try {
Save(&out, GetUsername());
+ } catch (...) {
+ // May fail e.g. when sssd_be crashes.
+ }
{
ui32 store[12];
