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

Issue 2115793003: Check that table evenly divides 256 when generating random string. (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

Check that table evenly divides 256 when generating random string. This prevents biased modulo arithmetic when selecting a character for a random value from the provided table. BUG=webrtc:5870 Committed: https://crrev.com/e3eff7c0625f82bf2e6dde1539699296a5415ae0 Cr-Commit-Position: refs/heads/master@{#13683}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Updated comment. #

Patch Set 3 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -3 lines) Patch
M webrtc/base/helpers.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/base/helpers.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M webrtc/base/helpers_unittest.cc View 1 2 2 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
joachim
Ptal https://codereview.webrtc.org/2115793003/diff/1/webrtc/base/helpers.cc File webrtc/base/helpers.cc (right): https://codereview.webrtc.org/2115793003/diff/1/webrtc/base/helpers.cc#newcode222 webrtc/base/helpers.cc:222: static bool CreateRandomString(size_t len, Function is not exposed ...
4 years, 5 months ago (2016-07-01 22:27:34 UTC) #2
mattdr-at-webrtc.org
LGTM. Thanks! https://codereview.webrtc.org/2115793003/diff/1/webrtc/base/helpers.h File webrtc/base/helpers.h (right): https://codereview.webrtc.org/2115793003/diff/1/webrtc/base/helpers.h#newcode38 webrtc/base/helpers.h:38: // number generator failed or the table ...
4 years, 5 months ago (2016-07-01 22:34:22 UTC) #3
joachim
+pthatcher for owner review https://codereview.webrtc.org/2115793003/diff/1/webrtc/base/helpers.h File webrtc/base/helpers.h (right): https://codereview.webrtc.org/2115793003/diff/1/webrtc/base/helpers.h#newcode38 webrtc/base/helpers.h:38: // number generator failed or ...
4 years, 5 months ago (2016-07-01 22:37:11 UTC) #5
joachim
On 2016/07/01 22:37:11, joachim wrote: > +pthatcher for owner review Ping? > https://codereview.webrtc.org/2115793003/diff/1/webrtc/base/helpers.h > File ...
4 years, 5 months ago (2016-07-18 10:38:15 UTC) #6
joachim
On 2016/07/18 10:38:15, joachim wrote: > On 2016/07/01 22:37:11, joachim wrote: > > +pthatcher for ...
4 years, 4 months ago (2016-07-28 11:56:22 UTC) #7
pthatcher1
lgtm
4 years, 4 months ago (2016-08-08 22:19:20 UTC) #8
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/2115793003/20001
4 years, 4 months ago (2016-08-08 22:31:34 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_baremetal on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_baremetal/builds/13193)
4 years, 4 months ago (2016-08-08 22:37:35 UTC) #13
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/2115793003/40001
4 years, 4 months ago (2016-08-08 23:32:42 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-09 00:13:37 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 00:13:52 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e3eff7c0625f82bf2e6dde1539699296a5415ae0
Cr-Commit-Position: refs/heads/master@{#13683}

Powered by Google App Engine
This is Rietveld 408576698