Supercharge Your Innovation With Domain-Expert AI Agents!

Random file creation method and device, computer equipment and storage medium

A technology of random files and computer programs, applied in computer security devices, computing, file systems, etc., can solve problems such as difficult content, consistent file comparison, time-wasting, and inability to guarantee file randomness

Pending Publication Date: 2022-05-03
北京云宽志业网络技术有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is: in the prior art, more time will be wasted when generating a large file, and the randomness of the file cannot be guaranteed when a small file is generated; most generated files are not friendly for consistency verification, and It is not easy to compare the consistency of the returned content with the uploaded file when downloading

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Random file creation method and device, computer equipment and storage medium
  • Random file creation method and device, computer equipment and storage medium
  • Random file creation method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0046] In the current way of generating files, most of them use "dd" to generate files of random size. This method has the following disadvantages: First, it will waste more time when generating large files, and there is no guarantee when generating small files. The randomness of the file; second, most of the generated files are generated with all 0s, which is quite unfriendly to the consistency check of the file; third, it is not easy to compare the consistenc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a random file creating method and device, computer equipment and a storage medium. The method comprises the steps of obtaining the file size of a random file to be generated; determining a creation mode of the random file according to the file size; wherein the creation mode comprises a direct creation mode and an indirect creation mode; and generating the random file based on the determined creation mode. Therefore, by using the mode to create the file, the time for creating the file can be saved to a great extent, the randomness of the file can be ensured, and meanwhile, the file name generated by the mode can verify the consistency of the file during downloading no matter whether the original file exists locally or not.

Description

technical field [0001] The invention relates to the technical field of creating random files under the Linux system, in particular to a method, device, computer equipment and storage medium for creating random files. Background technique [0002] In the prior art, the Linux system is the most widely used deployment system in projects. Compared with the Windows system, the Linux system has the following advantages: the Linux system is more stable, more secure, and has better flexibility and scalability Sex, and the Linux system is more cost-effective. [0003] In the current automated testing of object storage, the most needed and most used is the generation of files, especially for the generation of files in the Linux system, including small file generation and large file generation. [0004] In the current way of generating files, most of them use "dd" to generate files of random size. This method has the following disadvantages: First, it will waste more time when generat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/16G06F21/60G06F21/62
CPCG06F16/164G06F21/602G06F21/6218G06F2221/2107
Inventor 李欢
Owner 北京云宽志业网络技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More