Skip to content

Sandboxes · 1 November 2026

A fork returns 409 fork_unsafe when a copy would repeat the source's random numbers

A fork (forkOf, or POST /v1/sandboxes/{id}:fork) copies every process's memory, including the state of each language runtime's own random number generator. The kernel's generator is reseeded in every copy, but Node's UUID cache and OpenSSL generator, Python's random and ssl generators and Java's SecureRandom are reseeded only when the process loads Runtime's reseed shim. A fork whose source runs a Node, Python or Java process that the shim does not reach now returns 409 fork_unsafe, names each such process, and makes no copy; previously the copies started and could return the same UUIDs, tokens and keys as the source and as each other. While a copy is made, the source's Node, Python and Java processes are paused for a few milliseconds, so no copy runs one of them before it is reseeded.

Same day.

Cut your cloud billby 75%.

No card to start. Billed by the second after.

Start free, no card