Skip to content

tools: make code cache and snapshot deterministic

Rodrigo Muino Tomonari requested to merge github/fork/bnoordhuis/fix29108 into master

Use a fixed random seed to ensure that the generated sources are identical across runs.

The final node binary still reseeds itself on start-up so there should be no security implications caused by predictable random numbers (e.g., Math.random(), ASLR, the hash seed, etc.)

Fixes: https://github.com/nodejs/node/issues/29108

Merge request reports

Loading