Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Issue 2119003002: Don't silently ignore RNG failures when creating strings / numbers. (Closed)

Created:
4 years, 5 months ago by joachim
Modified:
4 years, 4 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Don't silently ignore RNG failures when creating strings / numbers. RTC_CHECK in functions that return the random value. BUG=webrtc:6072 Committed: https://crrev.com/912f46a348b2120e7847010095ab74e69758dd80 Cr-Commit-Position: refs/heads/master@{#13682}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Feedback from Matt. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -9 lines) Patch
M webrtc/base/helpers.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/base/helpers.cc View 1 4 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
joachim
Ptal https://codereview.webrtc.org/2119003002/diff/1/webrtc/base/helpers.cc File webrtc/base/helpers.cc (right): https://codereview.webrtc.org/2119003002/diff/1/webrtc/base/helpers.cc#newcode313 webrtc/base/helpers.cc:313: if (!CreateRandomId(&high) || !CreateRandomId(&low)) { Maybe get the ...
4 years, 5 months ago (2016-07-01 23:12:29 UTC) #2
mattdr-at-webrtc.org
https://codereview.webrtc.org/2119003002/diff/1/webrtc/base/helpers.h File webrtc/base/helpers.h (right): https://codereview.webrtc.org/2119003002/diff/1/webrtc/base/helpers.h#newcode43 webrtc/base/helpers.h:43: // WARNING: will abort() if the RNG fails! Use ...
4 years, 5 months ago (2016-07-01 23:57:39 UTC) #3
joachim
Thanks for your feedback, all changed. https://codereview.webrtc.org/2119003002/diff/1/webrtc/base/helpers.h File webrtc/base/helpers.h (right): https://codereview.webrtc.org/2119003002/diff/1/webrtc/base/helpers.h#newcode43 webrtc/base/helpers.h:43: // WARNING: will ...
4 years, 5 months ago (2016-07-02 00:12:01 UTC) #4
mattdr-at-webrtc.org
LGTM. Thanks!
4 years, 5 months ago (2016-07-02 00:14:27 UTC) #6
joachim
+pthatcher for owner review
4 years, 5 months ago (2016-07-02 00:15:10 UTC) #8
joachim
On 2016/07/02 00:15:10, joachim wrote: > +pthatcher for owner review Ping?
4 years, 5 months ago (2016-07-18 10:37:34 UTC) #9
joachim
On 2016/07/18 10:37:34, joachim wrote: > On 2016/07/02 00:15:10, joachim wrote: > > +pthatcher for ...
4 years, 4 months ago (2016-07-28 11:56:39 UTC) #10
pthatcher1
lgtm
4 years, 4 months ago (2016-08-08 22:17:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2119003002/20001
4 years, 4 months ago (2016-08-08 22:30:22 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-08 23:33:10 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 23:33:21 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/912f46a348b2120e7847010095ab74e69758dd80
Cr-Commit-Position: refs/heads/master@{#13682}

Powered by Google App Engine
This is Rietveld 408576698