code: function makeObjectID() {
      return hexString(8, Date.now() / 1000) +
          hexString(6, machineId) +
          hexString(4, processId) +
          hexString(6, counter++); // a 3-byte counter, starting with a random value.
  }
docs: random-based impl of Mongo ObjectID