From 999dafa2b1ba9585dcb7a287fa939b30af52f80f Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 6 Sep 2001 05:25:19 +0000 Subject: [PATCH] srand --- Parser/OpenFile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Parser/OpenFile.cpp b/Parser/OpenFile.cpp index 416be12b59..49f04aa9eb 100644 --- a/Parser/OpenFile.cpp +++ b/Parser/OpenFile.cpp @@ -1,4 +1,4 @@ -// $Id: OpenFile.cpp,v 1.19 2001-08-11 23:28:34 geuzaine Exp $ +// $Id: OpenFile.cpp,v 1.20 2001-09-06 05:25:19 geuzaine Exp $ #include "Gmsh.h" #include "Numeric.h" @@ -111,6 +111,9 @@ void OpenProblem(char *name){ InitSymbols(); Init_Mesh(&M, 1); + // Initialize pseudo random mesh generator to the same seed + srand(1); + ParseString(TheOptString); strncpy(CTX.filename,name,255); -- GitLab