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

Issue 10525003: Update comments in rand_util.h. (Closed)

Created:
8 years, 6 months ago by Sergey Ulanov
Modified:
8 years, 5 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Update comments in rand_util.h. The random number function in rand_util.h always generate secure random numbers, but the comments didn't mention that. Update the comments to stipulate that the returned values must be cryptographically secure.

Patch Set 1 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M base/rand_util.h View 1 chunk +7 lines, -4 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Sergey Ulanov
8 years, 6 months ago (2012-06-04 17:29:09 UTC) #1
willchan no longer on Chromium
sleevi: please confirm, and I'll rubberstamp
8 years, 6 months ago (2012-06-04 17:45:10 UTC) #2
Ryan Sleevi
Not a base owner, but a comment: It's only cryptographically secure in the sandbox iff ...
8 years, 6 months ago (2012-06-04 17:46:29 UTC) #3
Sergey Ulanov
On 2012/06/04 17:46:29, Ryan Sleevi wrote: > Not a base owner, but a comment: > ...
8 years, 6 months ago (2012-06-04 18:32:03 UTC) #4
willchan no longer on Chromium
8 years, 6 months ago (2012-06-04 22:51:59 UTC) #5
Thanks for the comments folks. I'd err on the side of caution and implement
rsleevi's suggestion of updating callers to invoke a crypto routine if they need
cryptographic guarantees, and just have them forward to the base implementation
for now.

Powered by Google App Engine
This is Rietveld 408576698