diff --git a/test/implementations/encrypted/testutils/FakeAuthenticatedCipher.h b/test/implementations/encrypted/testutils/FakeAuthenticatedCipher.h index d99ff86d..ad8232eb 100644 --- a/test/implementations/encrypted/testutils/FakeAuthenticatedCipher.h +++ b/test/implementations/encrypted/testutils/FakeAuthenticatedCipher.h @@ -7,7 +7,7 @@ struct FakeKey { FakeKey(uint8_t value_):value(value_) {} - static FakeKey CreateRandom() { + static FakeKey CreateOSRandom() { return FakeKey(rand()); } static FakeKey FromBinary(const void *data) { diff --git a/test/interface/helpers/BlockStoreWithRandomKeysTest.cpp b/test/interface/helpers/BlockStoreWithRandomKeysTest.cpp index fdcfada0..a6d0d53d 100644 --- a/test/interface/helpers/BlockStoreWithRandomKeysTest.cpp +++ b/test/interface/helpers/BlockStoreWithRandomKeysTest.cpp @@ -34,7 +34,7 @@ public: class BlockMock: public Block { public: - BlockMock(): Block(Key::CreateRandom()) {} + BlockMock(): Block(Key::CreateOSRandom()) {} MOCK_CONST_METHOD0(data, const void*()); MOCK_METHOD3(write, void(const void*, uint64_t, uint64_t)); MOCK_METHOD0(flush, void());