[*] 2x RNG QOL improvements.

[+] ...AuRNG alias
[+] ...implicit RandomDef ctor by u32 and u64
This commit is contained in:
Reece Wilson 2023-10-17 11:32:49 +01:00
parent 8fd4ef0a71
commit 685bc92a94
2 changed files with 11 additions and 0 deletions

View File

@ -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<AuUInt32> seed;
AuOptional<AuUInt64> seed64;

View File

@ -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;