[*] 2x RNG QOL improvements.
[+] ...AuRNG alias [+] ...implicit RandomDef ctor by u32 and u64
This commit is contained in:
parent
8fd4ef0a71
commit
685bc92a94
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user