[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 14 May 2003 17:33:59 -0000
albertel Wed May 14 13:33:59 2003 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
- add rndseed to passed balues
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.168 loncom/interface/lonprintout.pm:1.169
--- loncom/interface/lonprintout.pm:1.168 Wed May 14 09:33:27 2003
+++ loncom/interface/lonprintout.pm Wed May 14 13:33:59 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.168 2003/05/14 13:33:27 albertel Exp $
+# $Id: lonprintout.pm,v 1.169 2003/05/14 17:33:59 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1375,6 +1375,8 @@
my %form;
$form{'grade_target'}='tex';
$form{'textwidth'}=$LaTeXwidth;
+ my $rndseed=time;
+ $form{'rndseed'}=$rndseed;
&Apache::lonnet::appenv(%moreenv);
my $texversion=&Apache::lonnet::ssi($currentURL,%form);
&Apache::lonnet::delenv('form.counter');
@@ -1383,6 +1385,7 @@
my %form;
$form{'grade_target'}='answer';
$form{'answer_output_mode'}='tex';
+ $form{'rndseed'}=$rndseed;
my $answer=&Apache::lonnet::ssi($currentURL,%form);
# $r->print('<pre>'.$answer.'</pre>'); return OK;
$texversion=~s/(\\end{document})/$answer$1/;