bugfix on random_secrets level