Hitting a weird error to do with RNGs in Scan in a custom function inside a Potential

Another user had problems here: Equivalent GP models, different results - #5 by jan5