Runtime
Runtime Info Provider
The Runtime contract provides runtime information to developers. It exposes functions to retrieve pseudo-process IDs (PIDs) and pseudo-random UUIDs.
Random Number Generators
pid(): Returns the pseudo-process ID (PID) of the current execution unit (EU).
Since all EUs are identical and stateless, pid() is useful for generating deterministic, job-scoped keys or values within parallel execution.
uuid(): Returns a deterministic, job-scoped pseudo-random UUID. This value is unique per job and can be used to generate non-colliding keys or identifiers within the concurrent execution context.
Last updated