diff --git a/Include/Aurora/RNG/RandomDef.hpp b/Include/Aurora/RNG/RandomDef.hpp index baeb0aea..9deee0ac 100644 --- a/Include/Aurora/RNG/RandomDef.hpp +++ b/Include/Aurora/RNG/RandomDef.hpp @@ -13,6 +13,16 @@ namespace Aurora::RNG { AU_COPY_MOVE_DEF(RandomDef); + inline RandomDef(AuUInt32 seed) + { + this->SetSeed(seed); + } + + inline RandomDef(AuUInt64 seed) + { + this->SetSeed64(seed); + } + bool bSecure {}; AuOptional seed; AuOptional seed64; diff --git a/Include/Aurora/Runtime.hpp b/Include/Aurora/Runtime.hpp index 6129f9b2..1be378a2 100644 --- a/Include/Aurora/Runtime.hpp +++ b/Include/Aurora/Runtime.hpp @@ -105,6 +105,7 @@ namespace AuNet = Aurora::IO::Net; namespace AuFS = Aurora::IO::FS; namespace AuRng = Aurora::RNG; +namespace AuRNG = Aurora::RNG; namespace AuLocale = Aurora::Locale; namespace AuParse = Aurora::Parse; namespace AuProcess = Aurora::Process;