replaced our random string generator with the crypto.pseudoRandomBytes methods