Commit a1e8c4e
committed
Create a new SHA-256 hasher on each call to
MessageDigest does not seem to be thread safe, and when making multiple calls in
quick succession (like LiteFile does) will somehow result in the same API key
getting different hashes, resulting in those calls failing.makeHash
1 parent f2c5235 commit a1e8c4e
1 file changed
Lines changed: 7 additions & 11 deletions
Lines changed: 7 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 10 | | |
21 | 11 | | |
22 | 12 | | |
| |||
25 | 15 | | |
26 | 16 | | |
27 | 17 | | |
28 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
29 | 25 | | |
30 | 26 | | |
0 commit comments