This wrapper aims on prevention of microarchitectural attacks, clock-skew attacks, and other time related attacks. The goal is to limit the precision of the time returned by the Date object.
\see https://www.fit.vut.cz/study/thesis/22308/?year=0&sup=Pol%C4%8D%C3%A1k, especially Sect. 7.2.
The wrappers support the following behaviour:
- Round timestamp: Limit the precision by removing (a part of) the decimal part of the timestamp.
- Randomize after rounding: Create a fake decimal part to confuse attackers and to create timestamps that look similar to expected timestamps.