Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle idempotence key error (#1200)
reading from rand can return an error and fail to read bytes, this leads to the second component not being random. This solution panics in that case, similar to getting a new uuid https://github.com/google/uuid/blob/master/version4.go#L13-L15 the side effect is, in the case the second component is not random (an error happened) we are now panicing instead of continuing Signed-off-by: Andrew Klotz <[email protected]>
- Loading branch information