This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / gnu / lib / libg++ / libg++ / ACG.cc
index 6870a30..27e7aa2 100644 (file)
@@ -1,8 +1,25 @@
+// This may look like C code, but it is really -*- C++ -*-
+/* 
+Copyright (C) 1989 Free Software Foundation
+
+This file is part of the GNU C++ Library.  This library is free
+software; you can redistribute it and/or modify it under the terms of
+the GNU Library General Public License as published by the Free
+Software Foundation; either version 2 of the License, or (at your
+option) any later version.  This library is distributed in the hope
+that it will be useful, but WITHOUT ANY WARRANTY; without even the
+implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE.  See the GNU Library General Public License for more details.
+You should have received a copy of the GNU Library General Public
+License along with this library; if not, write to the Free Software
+Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
 #ifdef __GNUG__
 #pragma implementation
 #endif
 #ifdef __GNUG__
 #pragma implementation
 #endif
-#include "ACG.h"
-#include "assert.h"
+#include <ACG.h>
+#include <assert.h>
 
 //
 //     This is an extension of the older implementation of Algorithm M
 
 //
 //     This is an extension of the older implementation of Algorithm M
@@ -202,7 +219,7 @@ ACG::reset()
 {
     register unsigned long u;
 
 {
     register unsigned long u;
 
-    if (initialSeed > -1 && initialSeed < SEED_TABLE_SIZE) {
+    if (initialSeed < SEED_TABLE_SIZE) {
        u = seedTable[ initialSeed ];
     } else {
        u = initialSeed ^ seedTable[ initialSeed & (SEED_TABLE_SIZE-1) ];
        u = seedTable[ initialSeed ];
     } else {
        u = initialSeed ^ seedTable[ initialSeed & (SEED_TABLE_SIZE-1) ];