mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
Simplify LuaPseudoRandom::l_next and fix docs
Also extends the allowed range on the C++ side. This has no side-effects.
This commit is contained in:
@@ -81,7 +81,7 @@ void TestRandom::testPseudoRandomRange()
|
||||
{
|
||||
PseudoRandom pr((int)time(NULL));
|
||||
|
||||
EXCEPTION_CHECK(PrngException, pr.range(2000, 6000));
|
||||
EXCEPTION_CHECK(PrngException, pr.range(2000, 8600));
|
||||
EXCEPTION_CHECK(PrngException, pr.range(5, 1));
|
||||
|
||||
for (u32 i = 0; i != 32768; i++) {
|
||||
|
Reference in New Issue
Block a user