Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 385 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 385 Bytes

random-string-generator

npm install
npm start

В Node есть встроенный модуль crypto! Решение получше:

// test генерации UUIDv4
const crypto = require('crypto')

const startTimeMs = Date.now();

let i = 0;
for( ; Date.now() - startTimeMs < 1000; i++){
  const uuid = crypto.randomUUID()
  // console.log(uuid)
}
console.log(i)