Skip to content

Commit 38646b9

Browse files
schlesserawojsmol
andauthored
Update src/DB_Command.php
Co-Authored-By: wojsmol <[email protected]>
1 parent b057db7 commit 38646b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DB_Command.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ public function export( $args, $assoc_args ) {
465465
if ( ! empty( $args[0] ) ) {
466466
$result_file = $args[0];
467467
} else {
468-
$hash = substr( md5( wp_rand() ), 0, 7 );
468+
// phpcs:ignore WordPress.WP.AlternativeFunctions.rand_mt_rand -- WordPress is not loaded.
469+
$hash = substr( md5( mt_rand() ), 0, 7 );
469470
$result_file = sprintf( '%s-%s-%s.sql', DB_NAME, date( 'Y-m-d' ), $hash );
470471

471472
}

0 commit comments

Comments
 (0)