Make base::FastHash non-deterministic in DCHECK_IS_ON() builds.
This is a prerequisite for migrating more things over to base::FastHash, to ensure they don't inadverdently have a dependency on a stable mapping of inputs to hash values. Also change the FastHash(const std::string&) overload to FastHash(StringPiece) to avoid potentially constructing unnecessary temporaries. Bug: 1025358 Change-Id: I2e3d67ab74f869437ae2bdf12c9560f1be19688d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1919804Reviewed-by:Lei Zhang <thestig@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#715940}
Showing
Please register or sign in to comment