made securerandom compat