1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-13 19:57:00 +01:00

revert uid generation, but increase randomness

This commit is contained in:
Ian Storm Taylor 2016-11-17 10:17:37 -08:00
parent ade3c324bd
commit cdd1b29561
2 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,8 @@
"keycode": "^2.1.2",
"lodash": "^4.13.1",
"type-of": "^2.0.1",
"ua-parser-js": "^0.7.10"
"ua-parser-js": "^0.7.10",
"uid": "0.0.2"
},
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0",

View File

@ -1,5 +1,5 @@
let N = 0
import generate from 'uid'
/**
* Create a unique identifier.
@ -8,7 +8,7 @@ let N = 0
*/
function uid() {
return String(N++)
return generate(10)
}
/**