fix random to prevent future forks