gin: Add jitter to Date timestamp

This patch adds 1ms pseudorandom jitter to the millisecond time exposed
to the Date object.

(cherry picked from commit 2613496a226cffa857b104bb79cf0e8ee834825a)

Authors: Ross McIlroy <>, Sami Kyostila <>
Bug: 798964
Change-Id: Iea42a9bda72a934bbf2f8a9a8b3f3d4d74f519f0
Commit-Queue: Sami Kyöstilä <>
Reviewed-by: Ross McIlroy <>
Cr-Original-Commit-Position: refs/heads/master@{#527021}
Reviewed-by: Sami Kyöstilä <>
Cr-Commit-Position: refs/branch-heads/3282@{#440}
Cr-Branched-From: 5fdc0fab22ce7efd32532ee989b223fa12f8171e-refs/heads/master@{#520840}
1 file changed