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:
parent
ade3c324bd
commit
cdd1b29561
@ -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",
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user