Make r key regenerate the algorithm