--- loncom/homework/response.pm 2001/07/13 16:15:01 1.31
+++ loncom/homework/response.pm 2001/08/06 18:33:58 1.36
@@ -2,6 +2,8 @@
# various response type definitons response definition
# 11/23,11/24,11/28 Gerd Kortemeyer
+# Guy Albertelli
+# 08/04 Gerd Kortemeyer
package Apache::response;
use strict;
@@ -33,8 +35,11 @@ sub setrandomnumber {
&Apache::lonxml::debug("randseed $rndseed");
# $rndseed=unpack("%32i",$rndseed);
$rndseed=$rndseed
- +(&Apache::lonnet::numval($Apache::inputtags::part) << 10)
+ +(&Apache::lonnet::numval($Apache::inputtags::part) << 10);
+ if (defined($Apache::inputtags::response['-1'])) {
+ $rndseed=$rndseed
+&Apache::lonnet::numval($Apache::inputtags::response['-1']);
+ }
srand($rndseed);
&Apache::lonxml::debug("randseed $rndseed");
return '';
@@ -51,6 +56,13 @@ sub meta_parameter_write {
."\n";
}
+sub meta_package_write {
+ my $name=shift;
+ return ''
+ ."\n";
+}
+
sub meta_stores_write {
my ($name,$type,$display)=@_;
return '