Remove NR reference
authorRichard Lander <rlander@microsoft.com>
Mon, 19 Oct 2015 16:26:00 +0000 (09:26 -0700)
committerRichard Lander <rlander@microsoft.com>
Wed, 21 Oct 2015 05:02:17 +0000 (22:02 -0700)
After speaking to the authors, the attribution comment is not required for this instance. However, Numerical Recipes in C is an awesome book written by some very smart and classy folks. It's a great book.

src/inc/random.h
src/mscorlib/src/System/Random.cs

index 56b7bbf..790cb4f 100644 (file)
@@ -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;
index ef88431..59eb48c 100644 (file)
@@ -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;