2 ms·
Thats cool, do they let you fetch the current datetime multiple times now? Last time I remember you could get the current instant but it would never change for
by sammy2255 3y ago
Thats cool, do they let you fetch the current datetime multiple times now? Last time I remember you could get the current instant but it would never change for the whole request due to “security reasons”
- tyingq 3y agoThey are using V8 isolates, so spectre-like timing attacks are a legitimate concern. See https://leaky.page/ https://leaky.page/ for an example. Their explanation: "the time value returned is not the current time. Date.now() returns the time of the last I/O. It does not advance during code execution" https://developers.cloudflare.com/workers/learning/security-model/#step-1-disallow-timers-and-multi-threading https://developers.cloudflare.com/workers/learning/security-...
- vlovich123 3y agoIt changes across IO boundaries. It stays fixed otherwise because Spectre is a problem because all isolates run within the same process.