Optimization of random function. Fix key size chooice.