Skip to content

Commit

Permalink
Change uuid/v5 to uuid/v4 for a random id
Browse files Browse the repository at this point in the history
  • Loading branch information
gnought committed Sep 2, 2019
1 parent 9be3209 commit 3073ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aedes.js
Expand Up @@ -6,7 +6,7 @@ var util = require('util')
var memory = require('aedes-persistence')
var parallel = require('fastparallel')
var series = require('fastseries')
var uuidv5 = require('uuid/v5')
var uuidv4 = require('uuid/v4')
var Packet = require('aedes-packet')
var bulk = require('bulk-write-stream')
var reusify = require('reusify')
Expand Down Expand Up @@ -36,7 +36,7 @@ function Aedes (opts) {

opts = Object.assign({}, defaultOptions, opts)

this.id = opts.id || uuidv5('https://github.com/mcollina/aedes', uuidv5.URL)
this.id = opts.id || uuidv4()
this.counter = 0
this.connectTimeout = opts.connectTimeout
this.mq = opts.mq || mqemitter(opts)
Expand Down

0 comments on commit 3073ec7

Please sign in to comment.