Skip to content

Commit 069b233

Browse files
committed
✅ Replace str_random usage
1 parent cc00aff commit 069b233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tests/QueryBuilderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testDeleteWithId()
4646

4747
DB::collection('items')->where('user_id', $user_id)->delete($pid);
4848

49-
DB::collection('items')->where('user_id', $user_id)->delete(str_random(32));
49+
DB::collection('items')->where('user_id', $user_id)->delete(md5('random-id'));
5050

5151
$this->assertEquals(2, DB::collection('items')->count());
5252
}

0 commit comments

Comments
 (0)