Commit 4cf6b7e
committed
Change upload temporary file path generation to use crypto.randomBytes().
This should resolve an issue when using the Node cluster module, and two workers get forked with the same random seed, and the two processes' upload paths collide.
This also resolves the (somewhat confused) complaints of #247.1 parent 5bf869a commit 4cf6b7e
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
528 | 529 | | |
529 | 530 | | |
530 | 531 | | |
531 | | - | |
532 | | - | |
533 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
534 | 536 | | |
535 | 537 | | |
536 | 538 | | |
| |||
0 commit comments