Fill all components of ctr and key in random.hpp

Refs #79