diff options
-rw-r--r-- | src/inc/random.h | 3 | ||||
-rw-r--r-- | src/mscorlib/src/System/Random.cs | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/inc/random.h b/src/inc/random.h index 56b7bbfc82..790cb4f2a7 100644 --- a/src/inc/random.h +++ b/src/inc/random.h @@ -8,7 +8,7 @@ // // Defines a random number generator, ripped off from the System.Random code in the BCL. If you notice any problems, -// please compare to the implementation in ndp\clr\src\bcl\system\random.cs. +// please compare to the implementation in src\mscorlib\src\system\random.cs. // // Main advantages over rand() are: // @@ -93,7 +93,6 @@ public: int mj, mk; //Initialize our Seed array. - //This algorithm comes from Numerical Recipes in C (2nd Ed.) mj = MSEED - abs(Seed); SeedArray[55]=mj; mk=1; diff --git a/src/mscorlib/src/System/Random.cs b/src/mscorlib/src/System/Random.cs index ef88431e4a..59eb48cedc 100644 --- a/src/mscorlib/src/System/Random.cs +++ b/src/mscorlib/src/System/Random.cs @@ -55,7 +55,6 @@ namespace System { int mj, mk; //Initialize our Seed array. - //This algorithm comes from Numerical Recipes in C (2nd Ed.) int subtraction = (Seed == Int32.MinValue) ? Int32.MaxValue : Math.Abs(Seed); mj = MSEED - subtraction; SeedArray[55]=mj; |