PageID in DRP should seed on a random number |
||||||
Issue descriptionDRP 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.
,
Jun 16 2017
,
Jun 17 2017
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
,
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.
,
Jun 19 2017
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?
,
Jun 19 2017
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.
,
Jun 19 2017
SGTM. No need to review this bustamante@ I'll remove the merge labels.
,
Jun 19 2017
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 |
||||||
Comment 1 by bugdroid1@chromium.org
, Jun 16 2017