#include "entropy.h" #include #include #include #include Y_UNIT_TEST_SUITE(TestEntropy) { Y_UNIT_TEST(TestSeed) { char buf[100]; for (size_t i = 0; i < sizeof(buf); ++i) { Seed().LoadOrFail(buf, i); } } Y_UNIT_TEST(TestReset) { UNIT_ASSERT_NO_EXCEPTION(ResetEntropyPool()); } #if !defined(_win_) Y_UNIT_TEST(TestMissingWorkingDirectory) { NFs::SetCurrentWorkingDirectory(TTempDir::NewTempDir(GetWorkPath()).Name()); UNIT_ASSERT_NO_EXCEPTION(ResetEntropyPool()); } #endif } // Y_UNIT_TEST_SUITE(TestEntropy)