Removed rbytes to use crypto module randomBytes