mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Common: Include cleanup
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
#include "Random.h"
|
||||
#include "Common.h"
|
||||
#include "Errors.h"
|
||||
#include "SFMT.h"
|
||||
#include <boost/thread/tss.hpp>
|
||||
@@ -53,8 +52,8 @@ uint32 urand(uint32 min, uint32 max)
|
||||
uint32 urandms(uint32 min, uint32 max)
|
||||
{
|
||||
ASSERT(max >= min);
|
||||
ASSERT(INT_MAX / IN_MILLISECONDS >= max);
|
||||
return GetRng()->URandom(min * IN_MILLISECONDS, max * IN_MILLISECONDS);
|
||||
ASSERT(std::numeric_limits<uint32>::max() / Milliseconds::period::den >= max);
|
||||
return GetRng()->URandom(min * Milliseconds::period::den, max * Milliseconds::period::den);
|
||||
}
|
||||
|
||||
float frand(float min, float max)
|
||||
|
||||
Reference in New Issue
Block a user