--- loncom/homework/response.pm 2004/11/06 21:30:35 1.105.2.1 +++ loncom/homework/response.pm 2004/10/15 16:22:25 1.106 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.105.2.1 2004/11/06 21:30:35 albertel Exp $ +# $Id: response.pm,v 1.106 2004/10/15 16:22:25 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -136,17 +136,12 @@ sub setrandomnumber { my ($num1,$num2)=split(/\Q$char\E/,$rndseed); $num1+=$rndmod; $num2+=$rndmod; - if($Apache::lonnet::_64bit) { $num1=(($num1<<32)>>32); $num2=(($num2<<32)>>32); } $rndseed=$num1.$char.$num2; } else { $rndseed+=$rndmod; - if($Apache::lonnet::_64bit) { - use integer; - $rndseed=(($rndseed<<32)>>32); - } } - &Apache::lonxml::debug("randseed $rndseed"); &Apache::lonnet::setup_random_from_rndseed($rndseed); + &Apache::lonxml::debug("randseed $rndseed"); return ''; } @@ -651,7 +646,7 @@ sub analyze_store_foilgroup { sub check_if_computed { my ($token,$parstack,$safeeval,$name)=@_; my $value = &Apache::lonxml::get_param($name,$parstack,$safeeval); - if ($value ne $token->[2]{$name}) { + if (ref($token->[2]) eq 'HASH' && $value ne $token->[2]{$name}) { my $part_id="$Apache::inputtags::part.$Apache::inputtags::response[-1]"; $Apache::lonhomework::analyze{"$part_id.answercomputed"} = 1; }