[LON-CAPA-cvs] cvs: loncom(version_2_2_X) /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 10 Nov 2006 19:02:01 -0000


albertel		Fri Nov 10 14:02:01 2006 EDT

  Modified files:              (Branch: version_2_2_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - backport 1.803
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.782.2.4 loncom/lonnet/perl/lonnet.pm:1.782.2.5
--- loncom/lonnet/perl/lonnet.pm:1.782.2.4	Fri Oct 20 16:39:44 2006
+++ loncom/lonnet/perl/lonnet.pm	Fri Nov 10 14:01:59 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.782.2.4 2006/10/20 20:39:44 albertel Exp $
+# $Id: lonnet.pm,v 1.782.2.5 2006/11/10 19:01:59 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6573,6 +6573,7 @@
     if (!$domain) { $domain=$wdomain; }
     if (!$username) { $username=$wusername }
     my $which=&get_rand_alg();
+
     if (defined(&getCODE())) {
 	if ($which eq '64bit5') {
 	    return &rndseed_CODE_64bit5($symb,$courseid,$domain,$username);
@@ -6630,7 +6631,6 @@
 	#&Apache::lonxml::debug("$symbseed:$nameseed;$domainseed|$courseseed;$namechck:$symbchck");
 	#&Apache::lonxml::debug("rndseed :$num:$symb");
 	if ($_64bit) { $num1=(($num1<<32)>>32); $num2=(($num2<<32)>>32); }
-	if ($_64bit) { $num1=(($num1<<32)>>32); $num2=(($num2<<32)>>32); }
 	return "$num1,$num2";
     }
 }
@@ -6653,6 +6653,7 @@
 	my $num2=$nameseed+$domainseed+$courseseed;
 	#&Apache::lonxml::debug("$symbseed:$nameseed;$domainseed|$courseseed;$namechck:$symbchck");
 	#&Apache::lonxml::debug("rndseed :$num:$symb");
+	if ($_64bit) { $num1=(($num1<<32)>>32); $num2=(($num2<<32)>>32); }
 	return "$num1,$num2";
     }
 }