Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btree: remove dependency on github.com/satori/go.uuid #192

Merged
merged 1 commit into from May 25, 2018

Conversation

rsc
Copy link
Contributor

@rsc rsc commented May 25, 2018

The only call was uuid.NewV4().Bytes(), which really means
"get me 16 random bytes".

uuid.NewV4 changed at some point to return an error in addition
to the UUID, which made this code no longer compile.

There's no need to depend on a uuid package to get 16 random bytes.
Do what the old package did, namely read from crypto/rand.Reader
and expect it to succeed (or else panic), but without the dependency.

Fixes #187.
Fixes #188.

The only call was uuid.NewV4().Bytes(), which really means
"get me 16 random bytes".

uuid.NewV4 changed at some point to return an error in addition
to the UUID, which made this code no longer compile.

There's no need to depend on a uuid package to get 16 random bytes.
Do what the old package did, namely read from crypto/rand.Reader
and expect it to succeed (or else panic), but without the dependency.

Fixes Workiva#187.
Fixes Workiva#188.
@aviary2-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on HipChat: InfoSec Forum.

@dustinhiatt-wf
Copy link
Contributor

+1

1 similar comment
@brianshannan-wf
Copy link
Collaborator

+1

@brianshannan-wf brianshannan-wf merged commit 511e373 into Workiva:master May 25, 2018
@rsc
Copy link
Contributor Author

rsc commented May 31, 2018

Thanks!

@rsc rsc deleted the no-uuid branch May 31, 2018 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants