add a hack to specify the rng state for tuning folds