Unlock instant, AI-driven research and patent intelligence for your innovation.

Random character string generation method and apparatus

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: 2017-06-13
ADVANCED NEW TECH CO LTD
View PDF7 Cites 7 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
  • Random character string generation method and apparatus
  • Random character string generation method and apparatus
  • Random character string generation method and apparatus

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 invention discloses a random character string generation method and apparatus. The method comprises the steps of obtaining a value of a sequence variable in a database, wherein the value of the sequence variable is a sequence composed of basic numbers in a predetermined basic number set, and the value, obtained at current time, of the sequence variable is different from a value, obtained at any time except the current time, of the sequence variable; and according to a one-to-one mapping relationship between characters contained in a set character set and the basic numbers contained in the basic number set, mapping the sequence to a character string, which serves as a generated random character string. Through the method and the apparatus, the values, obtained at different times, of the sequence variable are all different, and correspondingly, the random character strings generated according to the one-to-one mapping relationship at different times are all different, so that the operation of comparing the character strings for multiple times does not need to be executed again, and the efficiency of generating a unique random character string can be improved.

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
IPC IPC(8): G06F17/00
CPCG06F17/00G06F16/90344G06F16/2255G06F7/582G06F7/58
Inventor 张新宇
Owner ADVANCED NEW TECH CO LTD