Module to generate random and unique strings among other things
This is the native Node module with full features. A simplified helper is also available. Check the "HashHelper" module documenation.
Find full module documentation here: https://nodejs.org/api/crypto.html
Example
const crypto = require("crypto");
const visitorId = crypto.randomBytes(16).toString("hex");