code: function randomValueHex(len) {
      return crypto
          .randomBytes(Math.ceil(len / 2))
          .toString('hex')
          .slice(0, len)
          .toUpperCase();
  }
docs: function code taken from http://blog.tompawlak.org/how-to-generate-random-values-nodejs-javascript