New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 733771 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug



Sign in to add a comment

PageID in DRP should seed on a random number

Project Member Reported by ryansturm@chromium.org, Jun 15 2017

Issue description

DRP uses 0 currently as the seed for PageID, but it could use a random instead. This will reduce the possibility of collisions when cached configs are used by DRP on the client.
 
Labels: Merge-Request-60
Project Member

Comment 3 by sheriffbot@chromium.org, Jun 17 2017

Labels: -Merge-Request-60 Hotlist-Merge-Review Merge-Review-60
This bug requires manual review: M60 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), josafat@(ChromeOS), bustamante@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 4 by bengr@chromium.org, Jun 18 2017

If collisions are your concern, why not use the current time as part of the page id? Random is probably as effective and easier, but thought I should ask.
Cc: bustamante@chromium.org
Labels: OS-All
This change has pretty low impact, so is safe to merge.

buettner: Is this high priority for 60, or is it fine to stay in 61?

bustmante: can you manually review this if buettner says it is high priority?
This can wait until M61. Most of our data has a unique session + page id, so we can filter out case that don't and that should give us enough to go on. 
Labels: -Hotlist-Merge-Review -M-60 -Merge-Review-60 M-61
SGTM. No need to review this bustamante@ I'll remove the merge labels.
Status: Fixed (was: Started)
In response to bengr@, it's random over a 64 bit uint, so I'm not worried about collisions. I'd be more worried about collisions on a windows device that resets the clock regularly (since the clock has bad granularlity), and I think TimeTicks would have a similar problem on a device that resets the time when it restarts. Either way, I'm not really worried about collisions, and the server team probably isn't too concerned with 1 or 2 collisions that might ever come about with a random number.

Sign in to add a comment