[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 01 Nov 2005 21:52:47 -0000


albertel		Tue Nov  1 16:52:47 2005 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - people complain that 'New Randomization' isn't random pehaps this will help things...
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.306 loncom/homework/structuretags.pm:1.307
--- loncom/homework/structuretags.pm:1.306	Tue Oct 18 17:46:42 2005
+++ loncom/homework/structuretags.pm	Tue Nov  1 16:52:47 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.306 2005/10/18 21:46:42 albertel Exp $
+# $Id: structuretags.pm,v 1.307 2005/11/01 21:52:47 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -192,7 +192,7 @@
 	    delete($env{'form.newrandomization'});
 	}
 	if (defined($rndseed) && $rndseed ne int($rndseed)) {
-	   $rndseed=join(',',&Math::Random::random_seed_from_phrase($rndseed));
+	    $rndseed=join(':',&Apache::lonnet::digest($rndseed));
         }
         if ($Apache::lonhomework::history{'resource.CODE'}) {
 	   $rndseed=&Apache::lonnet::rndseed();