7 Commits

Author SHA1 Message Date
Shauren
2c74626e66 Core/Random: Use standard aligned operator new and remove RandomEngine singleton instance (it is trivially constructible) 2025-07-09 12:20:10 +02:00
lee
5c4b1ace41 Build: Fix Linux aarch64 GCC build (#29831)
(cherry picked from commit 370685457e)
2024-03-27 10:50:42 +01:00
Shauren
b9c2dca59f Core/Random: Use correct headers to obtain _mm_malloc definitions 2024-02-17 12:03:06 +01:00
daMaex
31efaaac40 Core: build on aarch64 with gcc (#24216)
* build on aarch64 with gcc

* Core/aarch64: readability on preprocessor macro

* Core/aarch64: TC C++ codestyle adjustment

(cherry picked from commit ce449f6b53)
2021-12-22 20:50:53 +01:00
daMaex
8181177aea Core: Build on ARM64 - Raspberry Pi (preferable 4) (#23885)
* build again on aarch64

* include mm_malloc header instead of defining self

(cherry picked from commit cbe765df7a)
2021-12-22 12:30:00 +01:00
Shauren
b93bf95f2e Core/Random: Refactor random number generation to use std::uniform_*_distribution to restrict result range instead of doing that ourselves
* Seed SFMTRand with more values for its state

(cherry picked from commit 73bc3d8ea4)
2021-12-19 00:13:11 +01:00
daMaex
08b40733a5 Dep/SFMT: updated to newest upstream version from 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 4e0279b0e4)
2021-12-19 00:12:41 +01:00