Skip to content

Commit

Permalink
replace rand() by wp_rand()
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrazmorshed committed Oct 5, 2024
1 parent 161362f commit 92bbff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit-tests/test-class-quiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ public function testSaveUserAnswersUniquelyPerQuiz() {
'question_type' => 'single-line',
'question_category' => 'undefined',
'action' => 'add',
'question' => 'Is this a sample' . 'single-line' . ' question ? _ ' . rand(),
'question' => 'Is this a sample' . 'single-line' . ' question ? _ ' . wp_rand(),
'question_grade' => '1',
'answer_feedback' => 'Answer Feedback sample ' . rand(),
'answer_feedback' => 'Answer Feedback sample ' . wp_rand(),
'question_description' => ' Basic description for the question',
'question_media' => '',
'answer_order' => '',
Expand Down

0 comments on commit 92bbff6

Please sign in to comment.