Benchmarking
[poolifier.git] / lib / util.js
index bac53ec46c75c78cbe9d7b8b31a60fd6d8d2bd64..f894202b6d80f86d090e38965750d5074ffcffcd 100644 (file)
@@ -4,15 +4,10 @@
  * @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)]
-}