Make node randomBytes behave more like browser getRandomValues