1
0
forked from metin2/server

Used effolkronium/random for PRNG

This commit is contained in:
2022-11-27 14:36:04 +02:00
parent d188b4d53f
commit 3a74dac29e
55 changed files with 434 additions and 518 deletions

View File

@@ -926,8 +926,8 @@ bool SECTREE_MANAGER::GetRandomLocation(int lMapIndex, PIXEL_POSITION & r_pos, D
while (i++ < 100)
{
x = number(rRegion.sx + 50, rRegion.ex - 50);
y = number(rRegion.sy + 50, rRegion.ey - 50);
x = Random::get(rRegion.sx + 50, rRegion.ex - 50);
y = Random::get(rRegion.sy + 50, rRegion.ey - 50);
if (iMaxDistance != 0)
{