diff --git a/index.html b/index.html
index f2fd6a10..e38546c0 100644
--- a/index.html
+++ b/index.html
@@ -7858,9 +7858,7 @@
-
-
diff --git a/modules/ui/heightmap-editor.js b/modules/ui/heightmap-editor.js
index 4fc7cdbe..6cf1e7ab 100644
--- a/modules/ui/heightmap-editor.js
+++ b/modules/ui/heightmap-editor.js
@@ -989,6 +989,10 @@ function editHeightmap(options) {
HeightmapGenerator.setGraph(grid);
restartHistory();
+ const seed = byId("templateSeed").value;
+ if (seed) Math.random = aleaPRNG(seed);
+ restartHistory();
+
for (const step of steps) {
if (step.style.opacity === "0.5") continue;