EDOC-1500: to fix Veracode issue Random() changed to SecureRandom()