added require for securerandom