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

Issue 6904118: Add a rand_util method for generating a random string. (Closed)

Created:
9 years, 8 months ago by abarth-chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Add a rand_util method for generating a random string. We need this function to generate a nonce for MAC cookies. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83588

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -5 lines) Patch
M base/rand_util.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M base/rand_util.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M base/rand_util_unittest.cc View 1 2 3 4 2 chunks +18 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
abarth-chromium
I can haz reviews?
9 years, 8 months ago (2011-04-29 06:06:19 UTC) #1
Ryan Sleevi
On 2011/04/29 06:06:19, abarth wrote: > I can haz reviews? Random drive by: This overlaps ...
9 years, 7 months ago (2011-04-29 06:43:48 UTC) #2
abarth-chromium
On Thu, Apr 28, 2011 at 11:43 PM, <rsleevi@chromium.org> wrote: > On 2011/04/29 06:06:19, abarth ...
9 years, 7 months ago (2011-04-29 06:46:38 UTC) #3
abarth-chromium
http://codereview.chromium.org/6901121/ is the CL that uses this API for those interested in things in net-land.
9 years, 7 months ago (2011-04-29 07:42:36 UTC) #4
darin (slow to review)
http://codereview.chromium.org/6904118/diff/2002/base/rand_util.cc File base/rand_util.cc (right): http://codereview.chromium.org/6904118/diff/2002/base/rand_util.cc#newcode52 base/rand_util.cc:52: entropy = RandUint64(); nit: indentation
9 years, 7 months ago (2011-04-29 16:15:36 UTC) #5
abarth-chromium
> http://codereview.chromium.org/6904118/diff/2002/base/rand_util.cc#newcode52 > base/rand_util.cc:52: entropy = RandUint64(); > nit: indentation Fixenated.
9 years, 7 months ago (2011-04-29 17:56:52 UTC) #6
wtc
http://codereview.chromium.org/6904118/diff/2002/base/rand_util.h File base/rand_util.h (right): http://codereview.chromium.org/6904118/diff/2002/base/rand_util.h#newcode33 base/rand_util.h:33: BASE_API std::string RandString(int length); The |length| parameter should have ...
9 years, 7 months ago (2011-04-29 18:03:56 UTC) #7
darin (slow to review)
On 2011/04/29 18:03:56, wtc wrote: > This function should be named RandBytes or something along ...
9 years, 7 months ago (2011-04-29 18:07:45 UTC) #8
abarth-chromium
I've uploaded a new version that changes the name to RandBytesAsString. On 2011/04/29 18:07:45, darin ...
9 years, 7 months ago (2011-04-29 18:30:54 UTC) #9
darin (slow to review)
if you wanted to implement RandBytesAsString in terms of the RandBytes wtc suggested, you could ...
9 years, 7 months ago (2011-04-29 19:19:32 UTC) #10
darin (slow to review)
LGTM... but want to hear back from wtc.
9 years, 7 months ago (2011-04-29 19:19:58 UTC) #11
wtc
LGTM. I didn't review the unit test. Adding RandBytes is fine, or you can let ...
9 years, 7 months ago (2011-04-29 19:26:07 UTC) #12
abarth-chromium
> Adding RandBytes is fine, or you can let qsr do that. I'm going to ...
9 years, 7 months ago (2011-04-29 20:06:32 UTC) #13
commit-bot: I haz the power
9 years, 7 months ago (2011-04-29 21:03:56 UTC) #14
Change committed as 83588

Powered by Google App Engine
This is Rietveld 408576698