Lock.js
function generateLockName() {
  let subMark = Math.floor(Math.random() * 1000).toString(36)
  return `Lock:${Date.now().toString(36)}:${subMark}`
}
function generateLockName() {
  let subMark = Math.floor(Math.random() * 1000).toString(36)
  return `Lock:${Date.now().toString(36)}:${subMark}`
}
function generateLockName ( ) { let subMark = Math . floor ( Math . random ( ) * 1000 ) . toString ( 36 ) return ` ${ Date . now ( ) . toString ( 36 ) } ${ subMark } ` }
Generates a new, most likely unique, name for a freshly created lock that
was not provided with a custom name.

@return {string} The generated name for the lock.
Generates a new most likely unique name for a freshly created lock that was not provided with a custom name .