separated variation from test, generate random keys