diff --git a/matlab/cmaes.m b/matlab/cmaes.m index a2ef613c0..c0b6d215c 100644 --- a/matlab/cmaes.m +++ b/matlab/cmaes.m @@ -644,11 +644,11 @@ else % flgresume end % initialize random number generator - if ischar(opts.Seed) - randn('state', eval(opts.Seed)); % random number generator state - else - randn('state', opts.Seed); - end +% $$$ if ischar(opts.Seed) +% $$$ randn('state', eval(opts.Seed)); % random number generator state +% $$$ else +% $$$ randn('state', opts.Seed); +% $$$ end %qqq % load(opts.SaveFilename, 'startseed'); % randn('state', startseed); diff --git a/matlab/metropolis_hastings_initialization.m b/matlab/metropolis_hastings_initialization.m index 80c2f3532..2d6e7f07d 100644 --- a/matlab/metropolis_hastings_initialization.m +++ b/matlab/metropolis_hastings_initialization.m @@ -180,9 +180,6 @@ if ~options_.load_mh_file && ~options_.mh_recover % separate initializaton for each chain JSUM = 0; for j=1:nblck, - JSUM = JSUM + sum(100*clock); - randn('state',JSUM); - rand('state',JSUM); record.Seeds(j).Normal = randn('state'); record.Seeds(j).Unifor = rand('state'); end