Commit 1cfd076
committed
fix: Get-SharedEntropy accepts files >= 32 bytes, uses first 32 only
The USPTO Python MCPs write 328 bytes to ~/.uspto_internal_auth_secret.
The previous check required exactly 32 bytes and was wrongly recreating
the file (destroying shared entropy for all other MCPs). Now accepts any
file >= 32 bytes and returns only the first 32 bytes as the entropy seed,
matching the Pinecone TypeScript simpleSecureStorage.ts behavior.1 parent 761a22c commit 1cfd076
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | | - | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| |||
0 commit comments