input: move add_input_randomness - patch from Google Code issue 42265