[V5] Adds Redmine::Utils.random_hex for generating a random hex string

rebased #583.