Changeset 17036
- Timestamp:
- 06/26/19 11:22:58 (5 years ago)
- Location:
- branches/2435-alglib_3_15/HeuristicLab.ExtLibs/HeuristicLab.ALGLIB
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2435-alglib_3_15/HeuristicLab.ExtLibs/HeuristicLab.ALGLIB/3.15.0/ALGLIB-3.15.0/ap.cs
r16684 r17036 762 762 public class math 763 763 { 764 //public static System.Random RndObject = new System.Random(System.DateTime.Now.Millisecond); 765 public static System.Random rndobject = new System.Random(System.DateTime.Now.Millisecond + 1000*System.DateTime.Now.Second + 60*1000*System.DateTime.Now.Minute); 764 //public static System.Random RndObject = new System.Random(System.DateTime.Now.Millisecond); 765 [ThreadStatic] //mkommend: added thread static attribute to RNG to have a separate instance per thread and allow modification of the seed 766 public static System.Random rndobject = new System.Random(System.DateTime.Now.Millisecond + 1000*System.DateTime.Now.Second + 60*1000*System.DateTime.Now.Minute); 766 767 767 768 public const double machineepsilon = 5E-16; … … 777 778 { 778 779 double r = 0; 780 if (rndobject == null) rndobject = new System.Random(System.DateTime.Now.Millisecond + 1000 * System.DateTime.Now.Second + 60 * 1000 * System.DateTime.Now.Minute); 779 781 lock(rndobject){ r = rndobject.NextDouble(); } 780 782 return r; … … 783 785 { 784 786 int r = 0; 787 if (rndobject == null) rndobject = new System.Random(System.DateTime.Now.Millisecond + 1000 * System.DateTime.Now.Second + 60 * 1000 * System.DateTime.Now.Minute); 785 788 lock(rndobject){ r = rndobject.Next(N); } 786 789 return r; -
branches/2435-alglib_3_15/HeuristicLab.ExtLibs/HeuristicLab.ALGLIB/3.15.0/HeuristicLab.ALGLIB-3.15.0/HeuristicLab.ALGLIB-3.15.0.csproj
r16684 r17036 83 83 </ItemGroup> 84 84 <ItemGroup> 85 <Content Include="ALGLIB changes by HEAL.txt" /> 85 86 <Content Include="ALGLIB License-3.15.0.txt"> 86 87 <CopyToOutputDirectory>Always</CopyToOutputDirectory> -
branches/2435-alglib_3_15/HeuristicLab.ExtLibs/HeuristicLab.ALGLIB/3.7.0/HeuristicLab.ALGLIB-3.7.0/HeuristicLab.ALGLIB-3.7.0.csproj
r16565 r17036 127 127 </ItemGroup> 128 128 <ItemGroup> 129 <Content Include="ALGLIB changes by HEAL.txt" /> 129 130 <Content Include="ALGLIB License-3.7.0.txt"> 130 131 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
Note: See TracChangeset
for help on using the changeset viewer.