/* * Copyright (C) 2016+ AzerothCore , released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3 * Copyright (C) 2008-2021 TrinityCore */ #ifndef AZEROTHCORE_CRYPTORANDOM_H #define AZEROTHCORE_CRYPTORANDOM_H #include "Define.h" #include namespace Acore::Crypto { void GetRandomBytes(uint8* buf, size_t len); template void GetRandomBytes(Container& c) { GetRandomBytes(std::data(c), std::size(c)); } template std::array GetRandomBytes() { std::array arr; GetRandomBytes(arr); return arr; } } #endif