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

Issue 15479003: base: Fix file_util_win.cc temp file random name generation. (Closed)

Created:
7 years, 7 months ago by tommycli
Modified:
7 years, 6 months ago
CC:
vandebo (ex-Chrome), chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Currently, the temporary directory name is generated by rand(), which was seeded with the number of seconds since Epoch. This was flaky when many directories were generated within a second, such as within a unit test. This fix changes it to use base::rand_util. BUG=NONE Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206796

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M base/file_util_win.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
tommycli
brettw: Fixes temporary directory random name generation. Previously, random name was seeded by seconds from ...
7 years, 7 months ago (2013-05-20 18:51:30 UTC) #1
tommycli
brettw: ping for bugfix OWNER review.
7 years, 6 months ago (2013-05-28 20:14:46 UTC) #2
tommycli
darin/brettw/willchan: Ping for OWNER review.
7 years, 6 months ago (2013-06-11 15:22:58 UTC) #3
tommycli
mark: Also, need OWNER review on simple base/ bugfix.
7 years, 6 months ago (2013-06-17 18:07:21 UTC) #4
willchan no longer on Chromium
LGTM
7 years, 6 months ago (2013-06-17 18:13:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/15479003/1
7 years, 6 months ago (2013-06-17 18:25:48 UTC) #6
commit-bot: I haz the power
Failed to apply patch for base/file_util_win.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-17 18:25:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/15479003/9001
7 years, 6 months ago (2013-06-17 18:36:22 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-06-17 21:06:41 UTC) #9
Message was sent while issue was closed.
Change committed as 206796

Powered by Google App Engine
This is Rietveld 408576698