You are here

function qformat_hotpot::hotpot_seed_RNG in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/question/format/hotpot/format.php \qformat_hotpot::hotpot_seed_RNG()
1 call to qformat_hotpot::hotpot_seed_RNG()
qformat_hotpot::process_jmix in includes/moodle/question/format/hotpot/format.php

File

includes/moodle/question/format/hotpot/format.php, line 489

Class

qformat_hotpot
@package questionbank @subpackage importexport

Code

function hotpot_seed_RNG() {

  // seed the random number generator
  static $HOTPOT_SEEDED_RNG = FALSE;
  if (!$HOTPOT_SEEDED_RNG) {
    srand((double) microtime() * 1000000);
    $HOTPOT_SEEDED_RNG = TRUE;
  }
}