Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Export RandReader for deterministic testing #212

Merged
merged 1 commit into from
Dec 20, 2018
Merged

Export RandReader for deterministic testing #212

merged 1 commit into from
Dec 20, 2018

Conversation

jack-stripe
Copy link
Contributor

Hello!

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 go-jose correctly.)

This should be a fully backwards-compatible change, but let me know what you think!

@CLAassistant
Copy link

CLAassistant commented Dec 15, 2018

CLA assistant check
All committers have signed the CLA.

@jack-stripe
Copy link
Contributor Author

(re: CLA, I believe my employer has reached out to Square.)

@csstaub
Copy link
Collaborator

csstaub commented Dec 15, 2018

Change looks good to me. If you need help contacting the right person about setting up the CLA just shoot me an email, I’m cs(at)squareup.com.

@csstaub csstaub merged commit e94fb17 into square:v2 Dec 20, 2018
@csstaub
Copy link
Collaborator

csstaub commented Dec 20, 2018

Merged, thanks for the contribution @jack-stripe! If you need me to tag this in a release let me know.

@jack-stripe
Copy link
Contributor Author

Thanks @csstaub! If you have the chance to tag a release with this that would be great. And thanks again for an excellent library.

@csstaub
Copy link
Collaborator

csstaub commented Jan 2, 2019

This is out, in release v2.2.2: https://github.com/square/go-jose/releases/tag/v2.2.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants