Summary
The Go KeyPair interface includes SealWithRand(input []byte, recipient string, rr io.Reader) which allows encryption with a custom random source. This is useful for deterministic testing.
The .NET Seal method only uses the default system RNG.
Approach
Add a Seal overload that accepts a RandomNumberGenerator parameter, consistent with the existing CreatePair overload pattern. Purely additive.
Summary
The Go
KeyPairinterface includesSealWithRand(input []byte, recipient string, rr io.Reader)which allows encryption with a custom random source. This is useful for deterministic testing.The .NET
Sealmethod only uses the default system RNG.Approach
Add a
Sealoverload that accepts aRandomNumberGeneratorparameter, consistent with the existingCreatePairoverload pattern. Purely additive.