* @since 0.0.1
*/
-const uuid = require('uuid/v4')
+const uuid = require('uuid/v1')
/**
* Return an id to be associated to a node.
*/
module.exports.generateID = () => {
return uuid()
}
-
-module.exports.randomWorker = (collection) => {
- const keys = Array.from(collection.keys())
- return keys[Math.floor(Math.random() * keys.length)]
-}