| @@ -248,9 +248,9 @@ | ||
| 248 | 248 | * @return array $file |
| 249 | 249 | */ |
| 250 | 250 | public function _renameFileName($file) |
| 251 | 251 | { |
| 252 | - $prefix = 'fluent_support-' . md5(uniqid(rand())) . '___'; | |
| 252 | + $prefix = 'fluent_support-' . md5(uniqid(wp_rand())) . '___'; | |
| 253 | 253 | $prefix = apply_filters('fluent_support/uploaded_file_name_prefix', $prefix); |
| 254 | 254 | $file['name'] = $prefix . $file['name']; |
| 255 | 255 | return $file; |
| 256 | 256 | } |