summaryrefslogtreecommitdiff
path: root/mcon/U/randfunc.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/randfunc.U')
-rw-r--r--mcon/U/randfunc.U11
1 files changed, 6 insertions, 5 deletions
diff --git a/mcon/U/randfunc.U b/mcon/U/randfunc.U
index c3e18b8..af3ba62 100644
--- a/mcon/U/randfunc.U
+++ b/mcon/U/randfunc.U
@@ -1,12 +1,12 @@
-?RCS: $Id: randfunc.U,v 3.0 1993/08/18 12:09:39 ram Exp $
+?RCS: $Id$
?RCS:
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?RCS: that same Artistic Licence; a copy of which may be found at the root
-?RCS: of the source tree for dist 3.0.
+?RCS: of the source tree for dist 4.0.
?RCS:
?RCS: $Log: randfunc.U,v $
?RCS: Revision 3.0 1993/08/18 12:09:39 ram
@@ -50,6 +50,7 @@
?H:#define seednrand(x) $seedfunc(x) /**/
?H:.
?T:cont val
+?LINT:nothere $nrandbits)
: How can we generate normalized random numbers ?
echo " "
case "$randfunc" in
@@ -107,7 +108,7 @@ while $test "$cont"; do
echo "Checking to see how many bits your $randfunc() function produces..." >&4
$cat >try.c <<EOCP
#include <stdio.h>
-main()
+int main()
{
register int i;
register unsigned long tmp;
@@ -123,7 +124,7 @@ main()
printf("%d\n",i);
}
EOCP
- if $cc try.c -o try >/dev/null 2>&1 ; then
+ if $cc -o try try.c >/dev/null 2>&1 ; then
dflt=`try`
else
dflt='?'