Check patentability & draft patents in minutes with Patsnap Eureka AI!

Serial number generating method and device

A serial number generation and serial number technology, applied in the computer field, can solve problems such as poor security and repeated serial numbers, and achieve the effect of preventing repetition

Inactive Publication Date: 2015-08-26
走遍世界(北京)信息技术有限公司
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a serial number generation method and device to solve the problem of repeated serial numbers and poor security caused by the use of self-incrementing serial numbers 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
  • Serial number generating method and device
  • Serial number generating method and device
  • Serial number generating method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0018] An embodiment of the present invention provides a method for generating a serial number. figure 1 is a flowchart of a method for generating a serial number according to an embodiment of the present invention. Such as figure 1 As shown, the method includes the following steps:

[0019] In step S11, a trigger signal is acquired, and the trigger signal is used to trigger generation of a new serial number.

[0020] Specifically, when a new serial number needs to be generated, a trigger signal is sent to the server. Whether to generate a new serial number is judged by whether a trigger signal is acquired in step S11.

[0021] Step S13, according to the trigger signal, acquire the number parameter n of the counter.

[0022] Specifically, in step S13, when the trigger signal is obtained, the quantity parameter n in the counter is obtained, wherein the quantity parameter n is used as a part of the serial number, and is used to mark the quantity of the generated serial numbe...

Embodiment 2

[0077] The embodiment of the present invention also provides a serial number generation device, such as figure 2 As shown, the device may include: a first acquisition module 21 , a second acquisition module 23 , a third acquisition module 25 and a processing module 27 .

[0078] Wherein, the first obtaining module 21 is used to obtain a trigger signal, and the trigger signal is used to trigger the generation of a new serial number;

[0079] The second obtaining module 23 is used to obtain the quantity parameter n of the counter according to the trigger signal;

[0080] The third acquisition module 25 is configured to acquire the current system time according to the trigger signal;

[0081] The processing module 27 is configured to generate a serial number according to a serial number generation algorithm at least according to the number parameter n and the system time.

[0082] Through the first acquisition module 21, the second acquisition module 23, the third acquisition ...

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 serial number generating method and device. Wherein, the method comprises the steps of: acquiring a triggering signal, wherein the triggering signal is used for triggering to generate a new serial number; according to the triggering signal, acquiring a quantity parameter n of a counter; according to the triggering signal, obtaining a current system time; generating the serial number at least according to the quantity parameter n and the system time with a serial number generating algorithm. The method solves the problems of repeated serial number and poor safety caused by the fact that automatically increased serial numbers are used in the prior art.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for generating a serial number. Background technique [0002] In the existing large-scale websites, the serial number usually adopts an auto-increment method to generate the serial number. That is, when a serial number needs to be generated, an accumulation operation is performed on the basis of the previous serial number to obtain a new serial number. [0003] Using the self-increment method to generate serial numbers often encounters some errors, for example, when there are high concurrent requests, the generated serial numbers may be duplicated or errors may be caused due to slow processing speed. In addition, the serial number generated by the self-increment method is linear and continuous, and the security is poor. [0004] Aiming at the problems of repeated serial numbers and poor security caused by the use of self-incrementing serial numbers in the prior art,...

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 Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/958
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