mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00: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:
parent
d20f1182f2
commit
e824e9023f
5 changed files with 22 additions and 20 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue