Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit session IDs to a non-negative, pseudo-random int32
Technically, this reduces the set from which session IDs are drawn by (9.999.999.999 - 2.147.483.647) = 7.852.516.352, say 75%. Practically, ~2e10 possible session IDs should be large enough to avoid collisions in the real-world. This fixes an int overflow for 386 architectures. Fixes carvel-dev#663 Signed-off-by: Max Brauer <[email protected]>
- Loading branch information