summaryrefslogtreecommitdiff
path: root/tests/ref/fate
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-01-02 01:53:40 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2024-01-16 01:34:57 +0100
commit278fea3664f328eadc1050c7d54b12c5bc7f0e74 (patch)
tree6614dcd5b4b49cdf5fabdbc4258e4b9f883143c1 /tests/ref/fate
parent36b402f80d0adc6b0687e014e3f51a00b72335eb (diff)
avutil/eval: Use even better PRNG
This is the 64bit version of Chris Doty-Humphreys SFC64 Compared to the LCGs these produce much better quality numbers. Compared to LFGs this needs less state. (our LFG has 224 byte state for its 32bit version) this has 32byte state Also the initialization for our LFG is slower. This is also much faster than KISS or PCG. This commit replaces the broken LCG used before. (broken as it had only a period ~200M due to being put in a double) This changes the output from random() which is why libswresample.mak is updated, update was done using the command in libswresample.mak Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/ref/fate')
-rw-r--r--tests/ref/fate/eval2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ref/fate/eval b/tests/ref/fate/eval
index 5b4d93f427..441f9846c4 100644
--- a/tests/ref/fate/eval
+++ b/tests/ref/fate/eval
@@ -257,7 +257,7 @@ Evaluating 'root(sin(ld(0))+6+sin(ld(0)/12)-log(ld(0)), 100)'
'root(sin(ld(0))+6+sin(ld(0)/12)-log(ld(0)), 100)' -> 60.965601
Evaluating '7000000B*random(0)'
-'7000000B*random(0)' -> 0.003078
+'7000000B*random(0)' -> 12864914.486611
Evaluating 'squish(2)'
'squish(2)' -> 0.000335