CN111638866A - Random number generation method, device, equipment and storage medium - Google Patents

Random number generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN111638866A
CN111638866A CN202010339443.9A CN202010339443A CN111638866A CN 111638866 A CN111638866 A CN 111638866A CN 202010339443 A CN202010339443 A CN 202010339443A CN 111638866 A CN111638866 A CN 111638866A
Authority
CN
China
Prior art keywords
random
factor
address
random factor
host name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010339443.9A
Other languages
Chinese (zh)
Inventor
高亚龙
邓伟
张志平
胡道生
夏曙东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Transwiseway Information Technology Co Ltd
Original Assignee
Beijing Transwiseway Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Transwiseway Information Technology Co Ltd filed Critical Beijing Transwiseway Information Technology Co Ltd
Priority to CN202010339443.9A priority Critical patent/CN111638866A/en
Publication of CN111638866A publication Critical patent/CN111638866A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/588Random number generators, i.e. based on natural stochastic processes

Abstract

The invention discloses a random number generation method, which comprises the following steps: carrying out initialization operation on the IP address character string, the host name character string and the MAC address character string to obtain an initialized IP address random factor, an initialized host name random factor and an initialized MAC address random factor; carrying out random operation on the initialized host name random factor to obtain a host name random factor; carrying out random operation on the initialized MAC address random factor to obtain an MAC address random factor; carrying out random operation on the initialized IP address random factor to obtain an IP address random factor; and carrying out random operation on the host name random factor, the MAC address random factor and the IP address random factor to obtain a random number. By the method, the obtained random number has small storage space, small correlation coefficient and reliable uniqueness.

Description

Random number generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of random operation technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating random numbers.
Background
In recent years, with the rapid development of computer information technology, many applications require random number generation, for example, in cryptographic applications, random simulation, software and hardware testing, and industrial automation, random number generation is required, and the repeatability of random number seriously affects the security of data, and how to reduce the repeatability of random number, i.e. improve the unique reliability of the repeated number, is an important issue in the design of random number generation methods.
Disclosure of Invention
The embodiment of the disclosure provides a random number generation method, a random number generation device, equipment and a storage medium. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
In some optional embodiments, a random number generation method, comprises:
carrying out initialization operation on the IP address character string, the host name character string and the MAC address character string to obtain an initialized IP address random factor, an initialized host name random factor and an initialized MAC address random factor;
carrying out random operation on the initialized host name random factor to obtain a host name random factor;
carrying out random operation on the initialized MAC address random factor to obtain the MAC address random factor;
carrying out random operation on the initialized IP address random factor to obtain an IP address random factor;
and carrying out random operation on the host name random factor, the MAC address random factor and the IP address random factor to obtain a random number.
Further, when the obtained number of bits of the random number does not satisfy the preset number of bits, the method further includes:
and performing random operation on the time factors to obtain an operation result, and filling the digits of the random numbers according to the operation result.
Further, performing initialization operation on the IP address string, the host name string, and the MAC address string includes:
taking byte values of the IP address character strings, and performing addition, subtraction and remainder operations on the byte values to obtain an initialized IP address random factor;
taking a byte value of the host name character string, and performing addition and subtraction, absolute value taking and remainder operation on the byte value to obtain an initialized host name random factor;
and taking the MAC address character string to perform HASH operation to obtain an initialized MAC address random factor.
Further, random operation is carried out on the initialized host name random factor through a multiplication-and-remainder method to obtain a host name random factor;
carrying out random operation on the initialized MAC address random factor by a multiply-and-multiply-remainder method to obtain an MAC address random factor;
and carrying out random operation on the initialized IP address random factor by an inverse function method to obtain the IP address random factor.
Further, random operation is carried out on the host name random factor, the MAC address random factor and the IP address random factor through a normal distribution algorithm, and a random number is obtained.
Further, before performing initialization operation on the IP address string, the host name string, and the MAC address string, the method further includes:
and acquiring the IP address character string, the host name character string and the MAC address character string of the host machine.
In some optional embodiments, a random number generation apparatus, comprising:
the initialization module is used for carrying out initialization operation on the IP address character string, the host name character string and the MAC address character string to obtain an initialization IP address random factor, an initialization host name random factor and an initialization MAC address random factor;
the first random operation module is used for carrying out random operation on the initialized host name random factor to obtain a host name random factor;
the second random operation module is used for carrying out random operation on the initialized MAC address random factor to obtain the MAC address random factor;
the third random operation module is used for carrying out random operation on the initialized IP address random factor to obtain an IP address random factor;
and the random number generation module is used for carrying out random operation on the host name random factor, the MAC address random factor and the IP address random factor to obtain a random number.
Further, still include:
and the digit supplementing module is used for performing random operation on the time factor to obtain an operation result when the obtained digits of the random number do not meet the preset digits, and supplementing the digits of the random number according to the operation result.
In some optional embodiments, a random number generation device comprises a processor and a memory storing program instructions, wherein the processor is configured to execute the random number generation method provided by the above embodiments when executing the program instructions.
In some alternative embodiments, a computer readable medium has computer readable instructions stored thereon, the computer readable instructions being executable by a processor to implement the random number generation method provided by the above embodiments.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the invention provides a random number generation method, in the random number generation method, random factors such as host machine IP address, MAC address, host machine name, CPU clock and the like are added, so that the conflict rate of the random number is reduced by several times, random operation is carried out through a specific algorithm, the operation performance is greatly improved, the obtained random number has small storage space, small correlation coefficient and reliable uniqueness. The random number generated by the invention can be applied to various systems such as unique ID of a database table, unique order ID, serial flow ID, equipment ID and the like.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of random number generation according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of random number generation according to an exemplary embodiment;
FIG. 3 is a block diagram illustrating a random number generation apparatus according to an exemplary embodiment;
fig. 4 is a schematic structural diagram illustrating a random number generation apparatus according to an exemplary embodiment.
Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
In the design process of the random number, some objects for performing CPU random operation are preset in the initialization process and are placed into a thread pool, and a certain number of objects for random operation are maintained in the thread pool to avoid the overhead generated by creating the objects in the value taking process. In the actual value taking process, the objects in the initialized thread pool are directly obtained, the CPU related operation is only carried out through the objects, and the objects are returned to the thread pool after the operation is finished. The object of random operation belongs to thread safety, and for the high concurrency condition, the random number is obtained through the cached object, so that the value taking performance is greatly improved.
The random number generation method of the embodiment of the disclosure mainly includes two processes, namely an initialization process and a random operation process.
The initialization process mainly aims to obtain an initialization random factor, and in order to achieve unpredictability, the random factor is obtained by performing initialization operation on an IP address character string, a host name character string and an MAC address character string to obtain an initialization IP address random factor, an initialization host name random factor and an initialization MAC address random factor, and the random factors obtained by the above modes are used for subsequent random operation.
The idea of random operation is to use a specific algorithm to operate the obtained random factor to obtain a random number of a digital type.
The first embodiment is as follows:
the embodiment of the present disclosure provides a random number generation method, and fig. 1 is a schematic flow chart illustrating a random number generation method according to an exemplary embodiment. As shown in fig. 1, a random number generation method includes:
s101, carrying out initialization operation on the IP address character string, the host name character string and the MAC address character string to obtain an initialized IP address random factor, an initialized host name random factor and an initialized MAC address random factor;
specifically, the initializing operation of the IP address string, the host name string, and the MAC address string includes: the method comprises the steps of taking a byte value of an IP address character string, carrying out addition and subtraction and remainder operation on the byte value to obtain an initialized IP address random factor, taking the byte value of a host name character string, carrying out addition and subtraction, absolute value taking and remainder operation on the byte value to obtain an initialized host name random factor, and taking an MAC address character string to carry out HASH operation to obtain an initialized MAC address random factor.
Specifically, before initializing the IP address character string, the method further includes obtaining the IP address of the host, taking a part of byte values of the IP address character string, and performing operations of adding, subtracting, and complementation of the byte values to obtain a constant IP address random factor.
In some exemplary scenarios, the initialization operation for the IP address string includes:
taking a byte array from a byte [ ] ipbyte ═ ip address string;
ip ═ ipbyte [2] + ipbyte [3 ]; v/addition and subtraction of byte values;
if(ip>512){
ip-ip% 512; // find remainder
}
Specifically, before initializing the host name character string, the method further includes obtaining the host name of the host, taking a part of byte values of the host name character string, and performing addition and subtraction, absolute value taking and remainder operation on the byte values to obtain an initialized host name random factor.
In some exemplary scenarios, the initialization operation for the host name string includes:
byte [ ] hostByte ═ host name string fetch byte number;
hostOfInt=0;
for(byte b:hostByte){
hostOfInt + ═ b; v/byte addition and subtraction
}
Abss (hostaofint); v/taking absolute value
if(hostOfInt>8192){
hostOfInt 8192; // find remainder
}
Specifically, before the MAC address string is initialized, the method further includes acquiring the MAC address, and performing HASH operation on the MAC address string to obtain an initialized MAC address random factor.
In some exemplary scenarios, the MAC address is initialized, including:
int macAddrCode ═ MAC address string hashCode ();
by the method, the random factors of the initialized IP address, the host name and the MAC address can be obtained.
S102, carrying out random operation on the initialized host name random factor to obtain a host name random factor;
specifically, the initialized host name random factor is subjected to random operation through a multiplication-and-congruence method to obtain an operation result, and a partial value of the operation result is taken as the host name random factor, wherein a user can set the partial value of the operation result as the host name random factor according to needs.
The multiplication-congruence method is a mathematical method for generating uniform pseudo-random numbers by using congruence operation in an elementary number theory, and the iterative formula of the multiplication-congruence method is as follows:
xn +1 Lamda Xn (mod m) (Lamda is the parameter λ)
Rn+1=Xn/M
Where Xn +1 is an iterative operator and Rn +1 is a random number that needs to be generated each time. The selection of the parameters is crucial, and through inspection, the coefficients of two groups of good-performance prime number modulus multiplication and remainder method iteration formulas are as follows:
lamda=5^5,M=2^35-31
lamda=7^5,M=2^31-1
the realization notice is that: here, care must be taken to maximize the range, otherwise the computation 2^32 would overflow.
S103, carrying out random operation on the initialized MAC address random factor to obtain the MAC address random factor;
specifically, the initialized MAC address random factor is randomly calculated by a multiplication-and-remainder method to obtain an operation result, and a part of the value of the operation result is taken as the MAC address random factor, wherein a user can set the part of the value of the operation result as the MAC address random factor according to needs.
S104, carrying out random operation on the initialized IP address random factor to obtain an IP address random factor;
specifically, random operation is performed on the initialized IP address random factor through an inverse function method to obtain an operation result, and a part of the value of the operation result is taken as the IP address random factor, wherein a user can set the part of the value of the operation result as the IP address random factor according to needs.
The inverse function method is also called inverse transformation method, simulates continuous random variables and generates a mathematical method which obeys continuous distribution random numbers. It first needs to use a uniform distribution to obtain a random number between (0, 1), which is equivalent to the Y value of the original probability distribution, since we now reverse the X value.
By using the principle of probability integral transformation, the inverse function of the distribution function f (X) of the random variable X can be obtained, and we generally face the probability formula Y ═ f (X). Now, in turn, X is solved back from the known probability distribution or from its parametric information.
Xi=G(Ri);
Ri is a uniformly distributed random variable in the interval of 0-1, and when F (X) is simpler, the solution is easier, and when F (X) is more complex, more complex transformation skills are required.
S105, random operation is carried out on the host name random factor, the MAC address random factor and the IP address random factor to obtain a random number.
Specifically, random operation is performed on the host name random factor, the MAC address random factor and the IP address random factor through a normal distribution algorithm to obtain a random number.
The normal distribution plays an important role in the theory and application of probability statistics, and therefore, the random variables which can generate the normal distribution play a very important role in the simulation of the same kind of work. After a certain calculation variation, the generation of random variables conforming to the two-dimensional normal distribution can be performed according to the following method:
1) generating two random numbers r1 and r2 located in the interval 0-1;
2) calculating u-2 r1-1, v-2 r2-1 and w-u ^2+ v ^ 2;
3) if w >1, returning to 1;
4)x=u[(-lnw)/w]^(1/2);
y=v[(-lnw)/w]^(1/2);
if the distribution is normal (miu, sigma ^2), then x is generated according to the method'
=miu+sigma*x;
Further, when the obtained number of bits of the random number does not satisfy the preset number of bits, the method further includes:
and performing random operation on the time factors to obtain an operation result, and filling the digits of the random numbers according to the operation result.
In some exemplary scenarios, the random number to be obtained is 19 bits, and the random number obtained through the above steps is 15 bits, which does not satisfy the preset random number. At this time, a time factor of the CPU can be introduced to complement the digit number of the random number, and the unique reliability of the random number can be improved by introducing the CPU time random factor.
Specifically, when the number of bits of the acquired random number does not meet the preset number of bits, CPU time is acquired, HASH algorithm operation is performed on the time to obtain an operation result, and a part of the operation result is selected according to a difference value with the preset number of bits to complement the random number.
Further, performing initialization operation on the IP address string, the host name string, and the MAC address string includes:
taking byte values of the IP address character strings, and performing addition, subtraction and remainder operations on the byte values to obtain an initialized IP address random factor;
taking a byte value of the host name character string, and performing addition and subtraction, absolute value taking and remainder operation on the byte value to obtain an initialized host name random factor;
and taking the MAC address character string to perform HASH operation to obtain an initialized MAC address random factor.
Further, random operation is carried out on the initialized host name random factor through a multiplication-and-remainder method to obtain a host name random factor;
carrying out random operation on the initialized MAC address random factor by a multiply-and-multiply-remainder method to obtain an MAC address random factor;
and carrying out random operation on the initialized IP address random factor by an inverse function method to obtain the IP address random factor.
Further, random operation is carried out on the host name random factor, the MAC address random factor and the IP address random factor through a normal distribution algorithm, and a random number is obtained.
Further, before performing initialization operation on the IP address string, the host name string, and the MAC address string, the method further includes:
and acquiring the IP address character string, the host name character string and the MAC address character string of the host machine.
Based on the random number generation method provided by the embodiment of the disclosure, random factors such as a host machine IP address, an MAC address, a host machine name, a CPU clock and the like are added, so that the collision rate of the random number is reduced by multiple times, random operation is performed through a specific algorithm, the operation performance is greatly improved, the storage space of the obtained random number is small, the correlation coefficient is small, and the uniqueness is reliable. The random number generated by the invention can be applied to various systems such as unique ID of a database table, unique order ID, serial flow ID, equipment ID and the like.
Example two:
the embodiment of the present disclosure provides a random number generation method, and fig. 2 is a flowchart illustrating a random number generation method according to an exemplary embodiment. As shown in fig. 2, a random number generation method includes:
s201, a host IP address character string, a host name character string and an MAC address character string are obtained.
S202, carrying out initialization operation on the IP address character string, the host name character string and the MAC address character string to obtain an initialization IP address random factor, an initialization host name random factor and an initialization MAC address random factor.
Specifically, the initializing operation of the IP address string, the host name string, and the MAC address string includes: the method comprises the steps of taking a byte value of an IP address character string, carrying out addition and subtraction and remainder operation on the byte value to obtain an initialized IP address random factor, taking the byte value of a host name character string, carrying out addition and subtraction, absolute value taking and remainder operation on the byte value to obtain an initialized host name random factor, and taking an MAC address character string to carry out HASH operation to obtain an initialized MAC address random factor.
S203, random operation is carried out on the initialized host name random factor to obtain the host name random factor.
S204, random operation is carried out on the initialized MAC address random factor to obtain the MAC address random factor.
S205, random operation is carried out on the initialized IP address random factor to obtain the IP address random factor.
S206, the host name random factor, the MAC address random factor and the IP address random factor are subjected to random operation through a normal distribution algorithm to obtain random numbers.
S207, when the obtained digit of the random number does not meet the preset digit, performing random operation on the time factor to obtain an operation result, and filling up the digit of the random number according to the operation result.
In some exemplary scenarios, in order to ensure the information security of communication, the communication data needs to be encrypted, the encryption process needs to generate a unique ID of a communication database table by using a random number, for example, a 19-bit unique ID of the database table needs to be generated, first obtain a host IP address character string, a host name character string and a MAC address character string, and then perform an initialization operation on the IP address character string, the host name character string and the MAC address character string to obtain an initialized IP address random factor, an initialized host name random factor and an initialized MAC address random factor. And carrying out random operation on the initialized host name random factor to obtain the host name random factor. And carrying out random operation on the initialized MAC address random factor to obtain an MAC address random factor, and carrying out random operation on the initialized IP address random factor to obtain an IP address random factor. And carrying out random operation on the host name random factor, the MAC address random factor and the IP address random factor by a normal distribution algorithm to obtain a random number. And when the digit of the obtained random number does not meet 19 digits, performing random operation on the time factor to obtain an operation result, and filling up the digit of the random number according to the operation result.
By the method, a 19-bit random number can be obtained, the random number is used as the unique ID of the communication database table, the reliability is high, and the information security of the communication data is greatly improved.
Example three:
an embodiment of the present disclosure provides a random number generating apparatus, and fig. 3 is a schematic structural diagram of a random number generating apparatus provided according to an exemplary embodiment, and as shown in fig. 3, a random number generating apparatus includes:
the initialization module is used for carrying out initialization operation on the IP address character string, the host name character string and the MAC address character string to obtain an initialization IP address random factor, an initialization host name random factor and an initialization MAC address random factor;
s302, a first random operation module is used for performing random operation on the initialized host name random factor to obtain a host name random factor;
s303, a second random operation module is used for performing random operation on the initialized MAC address random factor to obtain the MAC address random factor;
s304, a third random operation module for performing random operation on the initialized IP address random factor to obtain an IP address random factor;
and S305, a random number generation module, configured to perform random operation on the host name random factor, the MAC address random factor, and the IP address random factor to obtain a random number.
Further, still include:
and the digit supplementing module is used for performing random operation on the time factor to obtain an operation result when the obtained digits of the random number do not meet the preset digits, and supplementing the digits of the random number according to the operation result.
Based on the random number generation device provided by the embodiment of the disclosure, random factors such as a host machine IP address, an MAC address, a host machine name, a CPU clock and the like are added, so that the collision rate of the random number is reduced by multiple times, random operation is performed through a specific algorithm, the operation performance is greatly improved, the storage space of the obtained random number is small, the correlation coefficient is small, and the uniqueness is reliable. The random number generated by the invention can be applied to various systems such as unique ID of a database table, unique order ID, serial flow ID, equipment ID and the like.
Example four:
the embodiment of the present disclosure provides a random number generation device, and fig. 4 is a schematic structural diagram of a random number generation device provided according to an exemplary embodiment. As shown in fig. 4, a random number generating device includes a processor 41 and a memory 42 storing program instructions, and may further include a communication interface 43 and a bus 44. The processor 41, the communication interface 43, and the memory 42 may communicate with each other via a bus 44. The communication interface 43 may be used for information transfer. Processor 41 may call logic instructions in memory 42 to perform the random number generation method provided by the above-described embodiments.
Example five:
the disclosed embodiments provide a computer readable medium, on which computer readable instructions are stored, the computer readable instructions being executable by a processor to implement the random number generation method provided by the above embodiments.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A random number generation method, comprising:
carrying out initialization operation on the IP address character string, the host name character string and the MAC address character string to obtain an initialized IP address random factor, an initialized host name random factor and an initialized MAC address random factor;
carrying out random operation on the initialized host name random factor to obtain a host name random factor;
carrying out random operation on the initialized MAC address random factor to obtain an MAC address random factor;
carrying out random operation on the initialized IP address random factor to obtain an IP address random factor;
and carrying out random operation on the host name random factor, the MAC address random factor and the IP address random factor to obtain a random number.
2. The method of claim 1, wherein when the number of bits of the obtained random number does not satisfy the preset number of bits, further comprising:
and carrying out random operation on the time factors to obtain an operation result, and filling the digits of the random numbers according to the operation result.
3. The method of claim 1, wherein initializing the IP address string, the host name string, and the MAC address string comprises:
taking byte values of the IP address character strings, and performing addition, subtraction and remainder operations on the byte values to obtain an initialized IP address random factor;
taking a byte value of the host name character string, and performing addition and subtraction, absolute value taking and complementation operations on the byte value to obtain an initialized host name random factor;
and taking the MAC address character string to perform HASH operation to obtain an initialized MAC address random factor.
4. The method of claim 1,
carrying out random operation on the initialized host name random factor by a multiplication-and-remainder method to obtain a host name random factor;
carrying out random operation on the initialized MAC address random factor by a multiplication-and-remainder method to obtain an MAC address random factor;
and carrying out random operation on the initialized IP address random factor by an inverse function method to obtain the IP address random factor.
5. The method according to claim 1, wherein the random number is obtained by performing a random operation on the hostname random factor, the MAC address random factor, and the IP address random factor through a normal distribution algorithm.
6. The method of claim 1, wherein before performing the initialization operation on the IP address string, the host name string, and the MAC address string, the method further comprises:
and acquiring the IP address character string, the host name character string and the MAC address character string of the host machine.
7. A random number generation apparatus, comprising:
the initialization module is used for carrying out initialization operation on the IP address character string, the host name character string and the MAC address character string to obtain an initialization IP address random factor, an initialization host name random factor and an initialization MAC address random factor;
the first random operation module is used for carrying out random operation on the initialized host name random factor to obtain a host name random factor;
the second random operation module is used for carrying out random operation on the initialized MAC address random factor to obtain an MAC address random factor;
the third random operation module is used for carrying out random operation on the initialized IP address random factor to obtain an IP address random factor;
and the random number generation module is used for carrying out random operation on the host name random factor, the MAC address random factor and the IP address random factor to obtain a random number.
8. The apparatus of claim 7, further comprising:
and the digit supplementing module is used for performing random operation on the time factor to obtain an operation result when the obtained digits of the random number do not meet the preset digits, and supplementing the digits of the random number according to the operation result.
9. A random number generation device comprising a processor and a memory having stored thereon program instructions, wherein the processor is configured to perform the random number generation method of any of claims 1 to 6 when executing the program instructions.
10. A computer readable medium having computer readable instructions stored thereon which are executable by a processor to implement the random number generation method of any one of claims 1 to 6.
CN202010339443.9A 2020-04-26 2020-04-26 Random number generation method, device, equipment and storage medium Pending CN111638866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010339443.9A CN111638866A (en) 2020-04-26 2020-04-26 Random number generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010339443.9A CN111638866A (en) 2020-04-26 2020-04-26 Random number generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111638866A true CN111638866A (en) 2020-09-08

Family

ID=72328771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010339443.9A Pending CN111638866A (en) 2020-04-26 2020-04-26 Random number generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111638866A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112203327A (en) * 2020-09-22 2021-01-08 普联国际有限公司 BSS Color value generation method, device, medium and equipment based on communication equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980488A (en) * 2017-03-14 2017-07-25 腾讯科技(深圳)有限公司 Random digit generation method and device
CN107172030A (en) * 2017-05-09 2017-09-15 国家计算机网络与信息安全管理中心 A kind of high concealed and anti-communication means traced to the source
CN107306261A (en) * 2016-04-22 2017-10-31 中兴通讯股份有限公司 A kind of encryption communication method and device, system
CN107450886A (en) * 2017-08-14 2017-12-08 北京睿信丰科技有限公司 A kind of random digit generation method and device
KR20180057183A (en) * 2016-11-22 2018-05-30 한국인터넷진흥원 A method and apparatus for generating a random ip
CN108279864A (en) * 2018-01-31 2018-07-13 上海集成电路研发中心有限公司 System random number generation method
CN109495266A (en) * 2018-12-25 2019-03-19 北京字节跳动网络技术有限公司 Data ciphering method and device based on random number
CN110392124A (en) * 2019-06-11 2019-10-29 广州视源电子科技股份有限公司 Generation method, device, system and the electronic equipment of the communication code of electronic equipment
CN110399118A (en) * 2019-07-15 2019-11-01 宇龙计算机通信科技(深圳)有限公司 A kind of random digit generation method, device, storage medium and electronic equipment
CN110505306A (en) * 2019-08-30 2019-11-26 公安部交通管理科学研究所 A kind of data ID generation method may specify digit
CN110719345A (en) * 2019-10-25 2020-01-21 苏州浪潮智能科技有限公司 Virtual machine MAC address generation method, system, equipment and computer medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107306261A (en) * 2016-04-22 2017-10-31 中兴通讯股份有限公司 A kind of encryption communication method and device, system
KR20180057183A (en) * 2016-11-22 2018-05-30 한국인터넷진흥원 A method and apparatus for generating a random ip
CN106980488A (en) * 2017-03-14 2017-07-25 腾讯科技(深圳)有限公司 Random digit generation method and device
CN107172030A (en) * 2017-05-09 2017-09-15 国家计算机网络与信息安全管理中心 A kind of high concealed and anti-communication means traced to the source
CN107450886A (en) * 2017-08-14 2017-12-08 北京睿信丰科技有限公司 A kind of random digit generation method and device
CN108279864A (en) * 2018-01-31 2018-07-13 上海集成电路研发中心有限公司 System random number generation method
CN109495266A (en) * 2018-12-25 2019-03-19 北京字节跳动网络技术有限公司 Data ciphering method and device based on random number
CN110392124A (en) * 2019-06-11 2019-10-29 广州视源电子科技股份有限公司 Generation method, device, system and the electronic equipment of the communication code of electronic equipment
CN110399118A (en) * 2019-07-15 2019-11-01 宇龙计算机通信科技(深圳)有限公司 A kind of random digit generation method, device, storage medium and electronic equipment
CN110505306A (en) * 2019-08-30 2019-11-26 公安部交通管理科学研究所 A kind of data ID generation method may specify digit
CN110719345A (en) * 2019-10-25 2020-01-21 苏州浪潮智能科技有限公司 Virtual machine MAC address generation method, system, equipment and computer medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112203327A (en) * 2020-09-22 2021-01-08 普联国际有限公司 BSS Color value generation method, device, medium and equipment based on communication equipment

Similar Documents

Publication Publication Date Title
Xian et al. Double parameters fractal sorting matrix and its application in image encryption
US6275586B1 (en) Cryptographically secure pseudo random number generator
US7254600B2 (en) Masking of factorized data in a residue number system
CN109791517B (en) Protecting parallel multiplication operations from external monitoring attacks
US20100070549A1 (en) Random number generator system, method for generating random numbers
US8428252B1 (en) Using multiples above two with running totals in elliptic curve cryptography scalar multiplication acceleration tables
CN103221917A (en) Protecting modular exponentiation in cryptographic operations
CN106464483B (en) Countermeasure, electronic circuit and the electronic system of elliptic curve cryptography are realized for electronic component
CN112153238B (en) Image encryption method based on Tent mapping and composite chaotic mapping
CN1413398A (en) Method for making data processing resistant to extraction of data by analysis of unintended side-channel signals
CN108875416B (en) Elliptic curve multiple point operation method and device
CN107896142B (en) Method and device for executing modular exponentiation and computer readable storage medium
CN111638866A (en) Random number generation method, device, equipment and storage medium
AU2020202883B1 (en) Systems and computer-implemented methods for generating pseudo random numbers
KR20040067779A (en) Information processing means
EP3930252A1 (en) Countermeasures for side-channel attacks on protected sign and key exchange operations
CN116089989A (en) Data iterative encryption processing method for offline data terminal
CN114936350B (en) Full-homomorphic encryption gate bootstrap method based on GPU (graphic processing unit) rapid number theory conversion
CN109559269A (en) A kind of method and terminal of image encryption
CN113609511B (en) Data processing and key protection method, device, equipment and storage medium
Anashin et al. ABC: A new fast flexible stream cipher
CN109951282B (en) Pseudo-random sequence generation method based on segmented CUBIC chaotic mapping
CN114063981A (en) Method for acquiring high-quality pseudo random number
CN116301721B (en) Random number generation method and device, electronic equipment and medium
JP2004530919A5 (en)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination