mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
fixed a bug in randHash... it was potentially returning an invalid number
This commit is contained in:
parent
be91051e40
commit
cf620b6396
@ -10,7 +10,7 @@ def randHash(num):
|
||||
bit patterns (i.e. doIds or zoneIds) to numbers with random bit patterns
|
||||
"""
|
||||
rng = RandomNumGen(num)
|
||||
return rng.randint(0,1<<16)
|
||||
return rng.randint(0, (1<<16) - 1)
|
||||
|
||||
class RandomNumGen:
|
||||
notify = \
|
||||
|
Loading…
x
Reference in New Issue
Block a user