Age | Commit message (Collapse) | Author |
|
singleton instance (it is trivially constructible)
|
|
* They were all cast to float at use anyway
* Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
|
|
* Core/Threads: Replace Boost TLS with C++11 one
Replace boost::thread_specific_ptr<T> thread-local storage with C++11 thread_local to remove libboost_thread dependency from common project
* Fix no-pch build
(cherry picked from commit 00b16992f1ae3bf14ab5fe6366028a2b8648bfa0)
|
|
std::uniform_*_distribution to restrict result range instead of doing that ourselves
* Seed SFMTRand with more values for its state
(cherry picked from commit 73bc3d8ea49a4793b14976e86010a36f19c1d18b)
|
|
https://github.com/MersenneTwister-Lab/SFMT
* only needed files added
* used CMake and SFMTRand from https://github.com/TrinityCore/TrinityCore/pull/23240 (Thank you Artox)
(cherry picked from commit 4e0279b0e48c9992842010b9f3f132e54a460128)
|
|
(cherry picked from commit 2ef9d301f0869b443122e2ba543af054c5b0e53c)
|
|
|
|
auto happy = new year(2019);
|
|
auto happy = new year(2018);
|
|
|
|
|
|
container types (including arrays where it makes sense)
* Added MapGetValuePtr to allow writing `if (Val* v = MapGetValuePtr(map, key))`
* Added utility IteratorPair class with begin/end methods and MapEqualRange for use in range for syntax with multimaps
|
|
Happy new year
|
|
supersede urandms(uint32,uint32) for scripts being ported to std::chrono.
(cherry picked from commit 224b42c53a6ae212f2d1d550903e019ab8a741d6)
|
|
Happy new year (Again new year with idiots ...)
|
|
functions to select a random element from a container where each element can have different chance of being selected
|