mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Run llFrand test just once.
It doesn't make sense to check the output multiple times. It would if lslcommon.IsCalc were set to True, because then it wouldn't be distinguishable from a randomly obtained value. But in non-calc mode, it would raise ELSLCantCompute if it were unpredictable, so it's OK to check just once because if it doesn't raise, it's predictable and can be checked.
This commit is contained in:
parent
2b0633e2f9
commit
742532d48e
1 changed files with 2 additions and 3 deletions
|
@ -930,7 +930,6 @@ def do_tests():
|
|||
test('llFrand(-Infinity)', 0.0)
|
||||
test('llFrand(-NaN)', -NaN)
|
||||
test('llFrand(NaN)', NaN)
|
||||
for i in range(10):
|
||||
test('llFrand(F32(1.4e-45))', 0.0)
|
||||
test('llFrand(F32(1.1754942106924411e-38))', 0.0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue