// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "bsp/trng/trng.hpp"
#include "RT1051Trng.hpp"
#include <memory>
namespace bsp::trng
{
std::uint32_t getRandomValue()
{
const auto trueRandomSource = std::make_unique<RT1051Trng>();
return (*trueRandomSource)();
}
} // namespace bsp::trng