Join GitHub today
Export RandReader for deterministic testing #212
We're using go-jose for a new project, and it'd be quite useful to be able to stub its randomness in tests. The specific kind of test we want to enable is where a partner gives us known inputs to be JWE'd and outputs to compare the results to (which gives us a way of asserting that we're actually invoking
This should be a fully backwards-compatible change, but let me know what you think!
This is out, in release v2.2.2: https://github.com/square/go-jose/releases/tag/v2.2.2