Skip to content
Snippets Groups Projects
Commit a7be2bc4 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

pqServerLauncher: remove usage of vtkMath::Random

parent 358170c7
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "pqServerResource.h"
#include "pqSettings.h"
#include "vtkCommand.h"
#include "vtkMath.h"
#include "vtkMinimalStandardRandomSequence.h"
#include "vtkNetworkAccessManager.h"
#include "vtkPVConfig.h"
#include "vtkPVOptions.h"
......@@ -303,8 +303,9 @@ bool createWidgets(QMap<QString, pqWidget*>& widgets, QDialog& dialog,
{
rseed += tc[ic];
}
vtkMath::RandomSeed(rseed);
noise = vtkMath::Random();
vtkNew<vtkMinimalStandardRandomSequence> rand;
rand->Initialize(rseed);
noise = rand->GetValue();
}
// obtain default value from settings if available.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment