()
| 226 | |
| 227 | export function guid(length) { |
| 228 | function s4() { |
| 229 | return Math.floor((1 + Math.random()) * 0x10000) |
| 230 | .toString(16) |
| 231 | .substring(1); |
| 232 | } |
| 233 | |
| 234 | var guid = s4() + s4() + '-' + s4() + '-' + s4() + '-' + |
| 235 | s4() + '-' + s4() + s4() + s4(); |