Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for generating random character strings

A technology of random strings and strings, applied in random number generators, electrical digital data processing, digital data processing components, etc., can solve problems such as low efficiency and achieve the effect of improving efficiency

Active Publication Date: 2022-03-22
ADVANCED NEW TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present application provides a method and device for generating a random character string to solve the problem of low efficiency of the method for generating a unique random character string in the prior art

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
  • Method and device for generating random character strings
  • Method and device for generating random character strings
  • Method and device for generating random character strings

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and corresponding drawings. Apparently, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0020] It has been mentioned in the background technology that at present, when generating a unique random string, a posteriori method is used (generate a random string first, and then check whether the random string is unique) to ensure the uniqueness of the generated and retained random string. sex. For a generated random string, if the random stri...

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 present application discloses a method and device for generating a random character string. The method includes: obtaining the value of the sequence variable of the serial number in the database, wherein the value of the sequence variable is a sequence composed of basic numbers in a predetermined set of basic numbers , the value of the sequence variable obtained this time is different from the value of the sequence variable obtained any time other than this time; according to the characters contained in the set character set and the basic number set The one-to-one mapping relationship of each basic number contained in , and the sequence is mapped to a character string as a generated random character string. Through this application, since the values ​​of the sequence variables obtained each time are different, correspondingly, the random character strings generated according to the one-to-one mapping relationship mapping are also different each time, therefore, it is not necessary to perform multiple character comparisons String operations, which can improve the efficiency of generating unique random strings.

Description

technical field [0001] The present application relates to the field of electrical digital data processing, and in particular to a method and device for generating random character strings. Background technique [0002] Random strings are widely used in many businesses. For example, a business that widely uses random character strings may be: a business that includes cryptographic processes, a business that needs to mark a large amount of business data, and so on. [0003] At present, for each random character string used by a business, in order to prevent confusion of business data, it is generally required that each random character string is unique within the scope of the business, that is, each random character string should be different from each other. [0004] In the prior art, it is generally possible to use a random algorithm to generate a random character string, and compare the generated random character string with the previously generated random character string...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F40/00
CPCG06F17/00G06F16/90344G06F16/2255G06F7/582G06F7/58
Inventor 张新宇
Owner ADVANCED NEW TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products