Pseudorandom number generator and pseudorandom number generation program

The pseudo-random number generation device and program use tent mapping with irrational initial values and iterative operations to overcome finite precision issues, ensuring high-quality, unpredictable random numbers for security applications by extending period lengths and maintaining a semi-permanent aperiodic sequence.

JP7564473B1Active Publication Date: 2024-10-09TOSHIBA INFORMATION SYSTEMS (JAPAN) CORPORATION
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023059318
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-09
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

Conventional pseudo-random number generators face issues with finite-precision arithmetic leading to unpredictable period lengths and short cycles, which affect the quality and unpredictability of generated random numbers, especially in security applications.

Method used

The proposed pseudo-random number generation device and program utilize tent mapping with irrational numbers as initial values and employ iterative operations defined by specific expressions, incorporating comparison and threshold checks to generate high-quality, aperiodic random number sequences, even on computers with finite precision.

Benefits of technology

The solution ensures the generation of high-quality, unpredictable random numbers suitable for security applications by extending the period length and maintaining a semi-permanent aperiodic sequence, despite finite arithmetic limitations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007564473000001_ABST
    Figure 0007564473000001_ABST
Patent Text Reader

Abstract

A pseudo-random number generating device is provided that can generate high-quality random numbers with unpredictability suitable for security technology by generating a non-periodic random number sequence. [Solution] The system comprises an initial value setting means 11 which sets an irrational number as the initial value of the iterative calculation of the tent mapping, a comparison means 12 which compares the calculation result of the iterative calculation of the tent mapping with a decision threshold, a pseudo-random number original value acquisition means 13 which acquires the original value of a pseudo-random number based on the comparison result by the comparison means 12, and a tent mapping calculation means 10 which performs the iterative calculation of the tent mapping by performing one of two calculations based on the comparison result by the comparison means 12.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a pseudorandom number generating device and a program for generating pseudorandom numbers. [Background technology]

[0002] Several conventional pseudorandom number generators using tent mapping have been proposed. Patent Document 1 shows a device that generates a pseudorandom number sequence with a substantially limitless cycle length. This device is equipped with a tent mapping calculation means that performs mapping calculation using tent mapping, a tent mapping parameter selection means that selects a value P when the maximum interval is multiplied by an integer based on (P-1) / 2 and provides the value P to the tent mapping calculation means in order to make the tent mapping possible with integer arithmetic, and a random number generation means that generates a sequence of a predetermined length based on the calculation result by the tent mapping calculation means.

[0003] Patent Document 2 discloses a device that generates physical random numbers with a uniform distribution using a simple configuration. This device includes an IV conversion circuit and is equipped with a mapping circuit that performs a logistic mapping operation, a subtraction circuit that subtracts the output of the mapping circuit from 1, a feedback path that feeds back the output of the subtraction circuit to the input terminal of the mapping circuit, and a random number extraction unit that digitally converts the output of the mapping circuit to obtain random numbers.

[0004] Patent Document 3 discloses an apparatus that can eliminate the need for key management and that reduces the computation load and computation cost. This apparatus is an encryption / decryption system that includes an encryption device having an encryption generation unit that generates ciphertext by computation, and a decryption device having a decryption unit that receives ciphertext from the encryption device and decrypts the ciphertext to obtain plaintext. The encryption device and the decryption device are provided with an encryption-side common key generation unit and a decryption-side common key generation unit that generate the same common key by exchanging notification information that is generated by computation of a one-dimensional map, and the encryption device generates encryption based on the common key, and the decryption unit performs decryption processing based on the common key. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2020-42453 A [Patent Document 2] JP 2019-168963 A [Patent Document 3] Patent Publication No. 2022-56275 Summary of the Invention [Problem to be solved by the invention]

[0006] The above conventional example has a problem with the period because of the implementation of finite precision arithmetic, and it was necessary to implement a mechanism to extend the period. However, even if a mechanism for extending the period is implemented, the period length cannot be estimated, so there is a possibility that the period will be short compared to the calculation precision.

[0007] Therefore, an object of an embodiment of the present invention is to provide a pseudo-random number generation device that can generate a non-periodic random number sequence and therefore generate high-quality random numbers that are unpredictable and suitable for security technology. [Means for solving the problem]

[0008] The pseudorandom number generating device according to the present invention comprises: Two operations are possible: a first operation which is an iterative operation of a tent map defined by a first formula, and a second operation which is an iterative operation of a tent map defined by a second formula. In addition, when instruction information is given to select and perform one of the two operations, the corresponding one of the operations is performed. an initial value setting means for setting an irrational number as an initial value of the iterative calculation of the tent mapping by the tent mapping calculation means; The tent mapping calculation means The result of the iterative tent mapping is compared with a decision threshold. The result of this comparison is given to the tent mapping calculation means as instruction information. The pseudo-random number generator includes a comparison means, and a pseudo-random number original value acquisition means for acquiring an original value of the pseudo-random number based on a comparison result by the comparison means.

[0009] In the pseudorandom number generating device according to the present invention, the interval of the tent map is an interval determined by irrational numbers, and the initial value setting means sets the initial value to 1.

[0010] In the pseudorandom number generating device according to the present invention, the initial value of the irrational number is expressed as a numerical value using a square root symbol.

[0011] In the pseudorandom number generating device according to the present invention, the comparison means is 2 -B 2 The method is characterized in that the comparison is performed by converting the values ​​into numerical expressions without the square root symbol using an operation of the above type.

[0012] The pseudorandom number generating device according to the present invention is characterized in that it comprises: initial value change time determination means for setting the initial value irrational number in the form of a+b√c, and detecting whether a exceeds a predetermined threshold value each time an iterative calculation is performed to determine when to change the initial value; and initial value change means for changing the initial value when the initial value change time determination means determines that a has exceeded the predetermined threshold value.

[0013] In the pseudorandom number generating device according to the present invention, the pseudorandom number element value obtaining means obtains an element value of a pseudorandom number of 2 bits or more at a time based on a comparison result by the comparing means.

[0014] In the pseudorandom number generating device according to the present invention, the interval of the tent map is an interval determined by rational numbers, and the initial value setting means sets the initial value to an irrational number.

[0015] The pseudorandom number generating program according to the present invention comprises: Two operations are possible: a first operation which is an iterative operation of a tent map defined by a first formula, and a second operation which is an iterative operation of a tent map defined by a second formula. In addition, when instruction information is given to select and perform one of the two operations, the corresponding one of the operations is performed. a tent mapping calculation means for performing an iterative calculation of the tent mapping by The tent mapping calculation means an initial value setting means for setting an irrational number as an initial value for the iterative calculation of the tent mapping; and a comparison of a calculation result of the iterative calculation of the tent mapping by the tent mapping calculation means with a judgment threshold. The result of this comparison is given to the tent mapping calculation means as instruction information. The present invention is characterized in that the comparison means functions as a comparison means and a pseudo-random number original value acquisition means for acquiring an original value of a pseudo-random number based on a comparison result by the comparison means.

[0016] In the pseudorandom number generation program according to the present invention, the interval of the tent map is an interval determined by irrational numbers, and the computer is caused to function as the initial value setting means to set the initial value to 1.

[0017] In the pseudorandom number generating program according to the present invention, the initial value of an irrational number is expressed as a numerical value using a square root symbol.

[0018] In the pseudorandom number generating program according to the present invention, the computer is used as the comparison means to generate a pseudorandom number (AB)(A+B)=A 2 -B 2 The present invention is characterized in that it functions to convert the above-mentioned formula into a formula using numerical values ​​without the square root symbol, and then performs the comparison.

[0019] In the pseudo-random number generation program of the present invention, the computer is caused to function as an initial value change time determination means that sets the initial value irrational number in the form of a+b√c, and detects whether a exceeds a predetermined threshold value each time an iterative calculation is performed to determine when to change the initial value, and as an initial value change means that changes the initial value when the initial value change time determination means determines that a has exceeded the predetermined threshold value.

[0020] The pseudo-random number generation program of the present invention is characterized in that it causes the computer to function as the pseudo-random number original value acquisition means to acquire original values ​​of pseudo-random numbers of two or more bits at a time based on the comparison result by the comparison means.

[0021] In the pseudorandom number generating program according to the present invention, the interval of the tent map is an interval determined by rational numbers, The computer is characterized in that it functions as the initial value setting means to set the initial value to an irrational number. [Brief description of the drawings]

[0022] [Figure 1] FIG. 1 is a configuration diagram of a pseudorandom number generating device according to the first embodiment. [Figure 1A] 4 is a flowchart showing the operation of the pseudo-random number generating device according to the first embodiment. [Diagram 2] A diagram showing a tent mapping map and the initial value X0 range of the tent mapping divided into 16 equal parts. [Diagram 3] FIG. 1 shows a tent map time series. [Figure 4] FIG. 13 is a diagram showing intervals of the initial value X0 of the tent map and the Gray codes and binary codes generated corresponding to each interval. [Diagram 5] A diagram showing a C language library in which the initial value X0 of the tent map is an irrational number (square root). [Figure 6] FIG. 1B is a diagram showing an example of a program written in C language for executing the flowchart of FIG. 1A. [Figure 7] FIG. 13 is a diagram showing a tent map in which the initial value X0 section in the first embodiment is multiplied by 2√2. [Figure 8] 8 is a diagram showing the results of iterative calculation of mapping by the main program of FIG. 6 when the initial value is set to X0=1, using the formula (2) shown in the tent mapping map of FIG. 7. FIG. [Figure 9] FIG. 11 is a configuration diagram of a pseudorandom number generating device according to the second embodiment. [Figure 9A] 10 is a flowchart showing the operation of the pseudorandom number generating device according to the second embodiment. [Figure 10] FIG. 11 is a diagram showing a calculation example in which the numerical value in the square root symbol is changed to vary the maximum interval according to the second embodiment. [Figure 11] FIG. 13 is a diagram showing a tent map in which a section is divided into four equal parts and two bits are obtained in the third embodiment. [Figure 12] FIG. 13 is a diagram showing a calculation example in which the numerical value in the square root symbol is changed to vary the maximum interval according to the third embodiment. [Figure 13] FIG. 13 is a diagram showing a tent mapping function in which the initial value X0 is set to √2 according to the fourth embodiment. [Figure 14] FIG. 13 is a diagram showing a calculation example in which the initial value X0 is set to √2 according to the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0023] Hereinafter, an embodiment of a pseudorandom number generator and a pseudorandom number generating program will be described with reference to the attached drawings. The pseudorandom number generator of the embodiment of the present invention can be realized as a computer performing processing by a program corresponding to the flowcharts shown in some figures, or by a program shown in some figures. In this embodiment, a tent map is used, so the tent map will be explained first.

[0024] [principle] About Tent Mapping The tent map is defined by the following equation (1):

number

[0025] Figure 2 shows a tent map in which the range [0,1] of the initial value X0 is divided into 16 equal parts. <1> ~ <16> The values ​​of each interval are shown in “Interval of tent mapping initial value X0” in FIG. In "JP Patent Publication 2016-039418", a tent mapping A / D conversion circuit is used, X i < 0.5, get bit 0, 0.5 ≤ X i When bit 1 is obtained, the above <1> ~ <16> For each section, a Gray code is obtained as shown in Figure 4. By converting the Gray code into binary, the binary code becomes ascending order as shown in Figure 4, and it can be seen that this corresponds to the initial value of the tent map.

[0026] In addition, as shown in the "Random Number Generator" of "JP Patent Publication 2019-168963," the value obtained by taking consecutive most significant bits is the bit code itself that represents the initial value X0 of the tent mapping. Therefore, if a non-repeating decimal (irrational number) value is set as the initial value X0, it means that a semi-permanently non-periodic value that is theoretically desirable in terms of random number performance can be obtained. This is because equation (1) is a repeated mapping of doublings, and if the initial value X0 is set with a finite number of bits, it will shift left by one bit every time it is doubled, so the finite number of bits will eventually run out and the number of bits will become X i This is because when =0, the value fluctuation is fixed at zero.

[0027] Therefore, if an irrational number with an infinite number of bits is set, the output bits can be obtained as a semi-permanent random number sequence. In this embodiment, a pseudorandom number generator is configured assuming a computer that is theoretically capable of infinite precision arithmetic.

[0028] <Embodiment 1> Figure 1 shows a configuration diagram of the pseudorandom number generation device of this embodiment. The pseudorandom number generation device of this embodiment comprises a tent map calculation means 10, an initial value setting means 11, a comparison means 12, and a pseudorandom number element value acquisition means 13. The pseudorandom number element value acquisition means 13 outputs the pseudorandom number element value a predetermined number of times (for example, the number of bits of the required random number) to an output device 20, and a pseudorandom number can be obtained. This pseudorandom number generation device is realized by the flowchart shown in Figure 1A.

[0029] The initial value setting means 11 sets an irrational number as the initial value of the iterative calculation of the tent map. As shown in step S10 of FIG. 1A, this initial value is set as the number of random number acquisition bits N, the number of times of mapping i=0, and the irrational number of the initial value X0 is given as a numerical value X0=a0+b0√c0 using the square root symbol. The interval of the mapping is set to [0, 2a+2b√c]. In this embodiment, the function half for selecting the equation of the mapping calculation is set to half of the above interval, half=a+b√c. Therefore, the maximum interval max of the mapping is max=2×half.

[0030] The comparison means 12 compares the result of the iterative calculation of the tent map with a decision threshold. iThe pseudo-random number original value acquisition means 13 acquires the original value of the pseudo-random number based on the comparison result by the comparison means 12. This pseudo-random number original value acquisition means 13 indicates the process of the part described as "output bit "0"" or "output bit "1"" in FIG. 1A.

[0031] The tent mapping calculation means 10 performs an iterative calculation of the tent mapping by performing one of two calculations based on the comparison result by the comparison means 12. The two calculations are shown in equation (1) in the normal tent mapping, but in this embodiment, they are shown in equation (2) below.

number

[0032] Therefore, in the tent mapping calculation means 10, there are calculations that branch from "1-2" to No and proceed to "1-4", and calculations that branch from "1-2" to Yes and proceed to "1-4" via "1-3". Then, in the judgment step before "end", it is detected whether the number of random number acquisition bits has reached N, and if it has not reached N (Yes in FIG. 1A), the process returns to "1-2" and repeats.

[0033] Theoretically, infinite precision arithmetic can generate random numbers permanently, but implementation by computer is limited to a finite number of digits, and implementation by infinite precision arithmetic is practically impossible. Therefore, in this embodiment, an irrational number is symbolized and set as the initial value X0 of the tent map, and a method is adopted to generate a non-periodic random number sequence semi-permanently. This is shown below.

[0034] For example, the tent map uses formula (1) to iterate the interval [0,1], but consider multiplying the interval width by 2√2 to the interval [0,2√2] with the initial value X0 set to 1 to iterate the tent map. In this case, when 1 is divided by 2√2 on the interval [0,1], the initial value X0 becomes "√2 / 4", and the calculation can essentially be performed with the initial value X0 as an irrational number. The formula obtained by multiplying the interval by an irrational number using this square root symbol √ becomes the previously mentioned formula (2). Figure 7 shows the tent map map for the interval [0,2√2] of formula (2).

[0035] Next, a pseudorandom number generating device and a pseudorandom number generating program according to this embodiment will be described based on the flowchart shown in FIG. 1A and the specific C language source code in FIGS. 5 and 6, which repeats the tent map of equation (2) by symbolizing the square root symbol √ in the program. The program shown in Figure 5 is the library "Irrat.h" for performing irrational number calculations on the tent map, and Figure 6 is the main function that loads the function defined in Figure 5, sets the initial value X0 of the tent map as an irrational number, and extracts random numbers from the iterations of the tent map.

[0036] First, the initial value is set as shown in "1-1" in Fig. 1A. In this embodiment, the random number is obtained one bit at a time, and the number of random number bits to be obtained is set to the variable N. In Fig. 1A, the random number is obtained one bit at a time for each mapping, so "0" is set as the initial value to the variable i that counts the number of mappings. Assuming that the square root symbol √ is used for irrational numbers, the maximum interval that is the range of the mapping, its half value, and the initial value X0 are set in the format shown in the following formula (3).

number

[0037] "1-1" shown in the program in Figure 5 is the initial value setting section for irrational numbers, which corresponds to "1-1" in Figure 1A. As shown in "1-1" in Figure 5, set integers of 0 or more to each variable "a, b, c" in the format of formula (3). The format of equation (3) is defined as a structure (multiple or more pieces of data grouped together into one block) consisting of three variables shown at the top of the program in Figure 5, and the iterative calculation of the tent map is performed in this format. One thing to note when setting variables in equation (3) is that the variable c in the square root symbol must be set to a value that is an irrational number.

[0038] Next, X shown in "1-2" in Figure 1A i A branching process is performed to determine whether is greater than or equal to half the value of the maximum interval. Since the threshold value that is the basis for branching in the branching process is an irrational number with a square root, it is necessary to consider how to calculate it. Since we start from “i=0”, the initial value X0 is compared with the half value of the maximum interval “half”. The initial value X0 is

number

[0039] Half the value of the maximum interval is “X h "

number

[0040] And we express it as “√c h For ", the value of the square root c is unified in advance, so "c h = c0". As shown below, “X0” and “X h The values ​​of " are compared to see which is larger.

number

[0041] Here, the symbol "?" is either "≦" if X0 is greater than or equal to half the maximum interval, or ">" if it is less than that. By subtracting X0 on the right hand side from both sides, we obtain the following equation (4).

number

[0042] Here, we obtain the square root √c h To eliminate

number

[0043] By multiplying, we get the following equation, which allows us to eliminate the square root symbol √.

number

[0044] If the result is less than or equal to 0,

number

[0045] holds, and X h In this case, in formula (2), "X h Since the formula "X0 = √2 ≤ X0" is selected, the process of subtracting X0 from the maximum interval max is performed, as in "2√2-X0".

[0046] This subtraction process corresponds to "1-3" in Figure 1A and "1-3" in Figure 5. The function comp, which compares the magnitude of "1-2" in Figure 5, subtracts "1-3", but this is the calculation part of the above formula (4). The program that performs the calculation of the above formula (5) is the if statement and else statement in "1-2" in Figure 5. Here, the format of formula (4) is calculated by calculating the formula under formula (2) during the iterative mapping process on the if statement side.

number

[0047] Because there are cases where

number

[0048] By multiplying

number

[0049] The result of is checked to see if it is less than or equal to 0. In this way, for each iteration of the map, "X h ≦X i " can be determined by eliminating the square root and using only integer multiplication and subtraction.

[0050] So far, we have shown what happens when the positive and negative sign forms of equation (3) become ab√c and -a+b√c. In addition, since the signs indicate that a+b√c will always be greater than or equal to 0 (positive), and -ab√c will always be less than 0 (negative), as shown in "1-2" in the program in Figure 5, when "a>0" and "b>0", the value is always positive and a+b√c>0 is true, so "return1" is returned as a positive value, and when "a<0" and "b<0", the value is always negative and -ab√c<0 is true, so "return-1" is returned.

[0051] Specifically, the results of iterative calculation of the mapping using the main program in FIG. 6 with the initial value X0=1 using equation (2) shown in the tent mapping map in FIG. 7 are shown in FIG. 8 and will be described. In the program in Figure 6, in order to set √2 as half of the maximum interval in the initial value setting, "a=0, b=1, c=2" is set to the variable half in the format of equation (3). The maximum interval is set as the variable max of the irrat structure with “a=0, b=2, c=2” in the format of equation (3), which is obtained by doubling half the value √2 using “1-4” in Figure 5. The initial value X0 is set to 1 in the format of equation (3), with “a=1, b=0, c=2” set as the variable x of the irrat structure as “1+0√2”. Here, all initial values ​​are set so as to include a value that is necessarily an irrational number, such as the variable "rt=2" in FIG.

[0052] Figure 8 shows the result of loading the library "Irrat.h" in Figure 5 into the header of the program in Figure 6, setting the square root √2 as an irrational number, and repeating the tent map of equation (2). The initial value X0 starts from 1 (1+0√2), and the values ​​of "a, b, c" are changed in the form of equation (3) every time the map is performed until i=8. i and 8 bits of the bit column (random number) are output. The rightmost column “Xi” in Figure 8 shows the results of calculating each “a+b√c”, and is shown to six decimal places.

[0053] Above, we have shown an example of obtaining 8 consecutive random bits from the repeated calculation of the tent map with the maximum interval of formula (2) set to 2√2 and the initial value X0 = 1. Dividing the maximum interval of the calculation by 2√2 results in the interval width being [0,1] and the initial value X0 = √2 / 4, which is equivalent to obtaining random values ​​from an irrational number, and therefore makes it possible to obtain a semi-permanently aperiodic random number sequence that does not fall into a period even on a computer with finite arithmetic precision. In addition, the library that handles square roots in Figure 5 uses only integer arithmetic operations such as multiplication and subtraction, enabling high-speed calculations that are highly compatible with computers.

[0054] <Embodiment 2> Changing the maximum section and extending the period In the first embodiment, a method for obtaining a non-periodic random number sequence by using a substantially irrational number as the initial value X0 of the tent mapping has been described, but the coefficients "a" and "b" have a structure in which the number of digits increases with each iteration of the mapping, as shown in the calculation process in Fig. 8. The increase in the number of digits increases the cost of calculation, and the number of digits is also limited by the finite number of digits in a computer.

[0055] Therefore, while in the first embodiment the maximum interval was set to 2√2, in the second embodiment, when the coefficient "a" in equation (3) exceeds a certain set number of digits, the numerical value c in the square root is changed and at the same time the initial value X0 is reinitialized to 1, thereby reducing the number of digits required for calculation and obtaining random numbers.

[0056] The configuration and method of Embodiment 2 will be described below. A configuration diagram is shown in FIG. 9, a flowchart is shown in FIG. 9A, and specific calculation results are shown in FIG. 10. In Embodiment 2, an initial value change timing determination means 21 and an initial value change means 22 are added to the configuration of Embodiment 1 shown in FIG. 1. The initial value change timing determination means 21 sets the irrational number of the above initial value in the form of a + b√c, and every time an iterative calculation is performed, it detects whether the above a exceeds a predetermined threshold value to determine the change timing of the initial value. The initial value change means 22 changes the initial value when the initial value change timing determination means 21 determines that the above predetermined threshold value has been exceeded.

[0057] As shown in the flowchart of FIG. 9A, in order to always make the square root an irrational number, avoid those that become rational numbers such as √4 = 2 and √9 = 3, and j pre-store a prime number sequence in c. Let these orders be j, and c j = 2, 3, 5, 7,... and are set as square roots in order from j = 0. As in the coefficient a of the calculation result in FIG. 8, since the number of digits increases with each iteration of the mapping, an upper limit value is set as a numerical value in "alimit" of the initial value setting in FIG. 9A.

[0058] Thereafter, in the same manner as the flowchart of FIG. 1A of Embodiment 1, an iteration of the tent mapping is repeated to obtain a random bit sequence. In the calculation example of FIG. 10, "alimit = 999" is set, and when the absolute value of "a" becomes larger than alimit due to the coefficient a having 4 or more digits and the branch condition "(alimit ≦ a) and (N < i)" in the flowchart of FIG. 9A, the maximum interval is changed by the next prime number c1. At the same time, the initial value "X0 = 1" is reset, and the iteration of the tent mapping is repeated until the absolute value of "a" becomes larger than alimit again, and the process of obtaining a random bit sequence is repeated. Although finite-digit operations are possible, the larger the prime numbers prepared and the maximum number of digits implemented, the more non-periodic random sequences can be obtained.

[0059] <Embodiment 3> Obtaining a plurality of bits in one mapping In the above embodiments, a single bit of random value is obtained for each mapping, but in this embodiment, multiple bits are obtained for each mapping. The pseudo-random number original value obtaining means 13 obtains an original value of a pseudo-random number of 2 bits or more at a time based on the comparison result by the comparing means 12. Figure 11 shows the iterative tent map X i The map shows the maximum interval multiplied by “12+4√2”, and the interval is divided into four, which is the tent map equation (6) below.

number

[0060] If the value is less than "6+2√2", half the maximum interval "12+4√2", the first linear expression in (6) is selected. If the value is equal to or greater than "6+2√2", the second linear expression in (6) is selected and the tent mapping is repeated. Here, as shown in the map in Figure 11, the map X i If is less than “3+√2”, output two bits of “00” as random bits and map X i "3+√2≦X i <6+2√2”, “01”, “6+2√2≦X i <9+3√2”, “11”, “9+3√2≦X i <12+4√2”, output 2 bits of “10” each. X i For comparison, use program "1-2" in Figure 5 to i It is necessary to determine which of the four intervals the value falls within.

[0061] According to the above-mentioned embodiment 3, it is possible to output multiple bits in one mapping, and it is expected that the speed of random number generation will be improved. Also, as shown in embodiment 2, when the coefficient "a" in formula (3) exceeds a certain set number of digits, the value c in the square root is changed, and the output 2-bit pattern is changed to, for example, the interval in FIG. <1> is "00⇒01", section <2> is "01⇒11", section <3> is "11⇒10", section <4> gives a mechanism to shift by one, such as "10 ⇒ 00". Or, the result of performing the exclusive OR of the previous 2 bits of random numbers 9 times as shown in Figure 12 is "11", which is 3 in decimal, so it is in the range of Figure 11. <1> is the section shifted by +3 <4> "00⇒10", section <2> is the interval <1> One possible method is to change the bit pattern to be output by referencing the previous random number value, such as changing the bit pattern from "01 to 00." This has the effect of increasing the number of random number generation patterns.

[0062] In addition, while the interval is divided into four in Figure 11, it is also possible to divide it into eight and output three bits as random numbers for each mapping. Similarly, when changing the value c in the square root shown in embodiment 2, it is possible to change the random number pattern for each interval from the previous random value, or to change the number of equal divisions by referring to the previous random numbers, which may further increase the variety of random number patterns.

[0063] <Embodiment 4> Set the initial value X0 to an irrational number (square root) In the embodiments up to now, the interval which is the range of the tent mapping is given as the square root of an irrational number, and the initial value X0 is given as an integer of 1, but the initial value X0 may be given as the square root of an irrational number. In this embodiment, the interval of the tent mapping is set as an interval determined by rational numbers, and the initial value setting means 11 sets the initial value as an irrational number. Specifically, as shown in the map in Fig. 13, the maximum interval is 10, and half of that interval is 5, as expressed by the following equation (7).

number

[0064] In the program of Figure 6, the initial value setting of “1-1” is the square root symbol “rt=2”, and the specific values ​​obtained by repeating the mapping of equation (7) by giving half=conv(5,0,rt), max=mul2(half), x=conv(0,1,rt) and the initial value “X0=√2” are shown in Figure 14. In this case as well, the number of digits of the coefficients a and b increases with each iteration of the mapping. Therefore, as shown in the second embodiment, by providing a mechanism for changing the value c in the square root when the coefficient “a” in equation (3) exceeds a certain set number of digits, it is possible to reduce the number of digits and perform the calculation.

[0065] Square roots such as √2 are known as irrational numbers, and by setting an irrational number as the initial value X0 of the tent map, it is theoretically possible to obtain a semi-permanently non-periodic random number sequence, making it possible to obtain high-quality random numbers with unpredictability that are suitable for security technology. By symbolizing the square root symbol √ in the program, it is possible to calculate the iterations of the tent map using only integer multiplication and subtraction. As a result, it can be composed only of integer arithmetic multiplication and subtraction, allowing for high-speed calculations that are compatible with computer operations.

[0066] By making the initial value X0 an irrational number and providing a mechanism to change the initial value X0 when the digits exceed a certain upper limit, the period of the pseudo-random number sequence can be extended indefinitely, and by using the random numbers up to that point to change the random number pattern, the variety of random number generation can be increased. In conventional examples, even if a mechanism for extending the period was considered, the period length could potentially be quite short. However, by assigning an irrational number to the initial value X0 of the tent map, a non-periodic random number sequence can always be obtained. [Explanation of symbols]

[0067] 10 Tent mapping calculation means 11 Initial value setting method 12 Means of comparison 13. Method of obtaining pseudorandom number source value 20 Output Devices 21 Means for determining when to change initial value 22 How to change the initial value

Claims

1. A tent mapping calculation means capable of performing two operations, a first operation which is an iterative operation of a tent mapping defined by a first formula, and a second operation which is an iterative operation of a tent mapping defined by a second formula, and which performs an iterative calculation of a tent mapping by receiving instruction information to select and perform one of the two operations and performing the corresponding one of the operations; an initial value setting means for setting an irrational number as an initial value for the iterative calculation of the tent mapping by the tent mapping calculation means; a comparison means for comparing a calculation result of the iterative calculation of the tent mapping by the tent mapping calculation means with a judgment threshold and giving the comparison result to the tent mapping calculation means as instruction information; a pseudo-random number original value acquisition means for acquiring an original value of a pseudo-random number based on a comparison result by the comparison means; A pseudorandom number generating device comprising:

2. The interval of the tent map is an interval defined by an irrational number, 2. The pseudorandom number generating device according to claim 1, wherein said initial value setting means sets the initial value to 1.

3. 3. The pseudorandom number generating device according to claim 1, wherein the irrational number of the initial value is a numerical value using a square root symbol.

4. The pseudorandom number generator according to claim 3, characterized in that the comparison means performs comparison by converting the values ​​into a mathematical formula using an operation of the form (A-B)(A+B)=A2-B2 without using a square root symbol.

5. an initial value change time determination means for setting the initial value irrational number in the form of a+b√c, and for determining when to change the initial value by detecting whether the a exceeds a predetermined threshold value each time an iterative calculation is performed; an initial value changing means for changing the initial value when it is determined that the initial value has exceeded the predetermined threshold; 4. The pseudorandom number generating device according to claim 3, further comprising:

6. 2. The pseudorandom number generating device according to claim 1, wherein the pseudorandom number element value obtaining means obtains an element value of a pseudorandom number of 2 bits or more at a time based on a comparison result by the comparing means.

7. The interval of the tent map is defined as an interval defined by rational numbers, 2. The pseudorandom number generating device according to claim 1, wherein said initial value setting means sets the initial value to an irrational number.

8. A computer constituting a random number generating device, a tent mapping calculation means capable of performing two calculations, a first calculation which is a repetitive calculation of a tent mapping defined by a first formula and a second calculation which is a repetitive calculation of a tent mapping defined by a second formula, and which performs an iterative calculation of a tent mapping by receiving instruction information to select and perform one of the two calculations and performing the corresponding one of the two calculations; an initial value setting means for setting an irrational number as an initial value for the iterative calculation of the tent mapping by the tent mapping calculation means; a comparison means for comparing a calculation result of the iterative calculation of the tent mapping by said tent mapping calculation means with a judgment threshold and giving the comparison result to said tent mapping calculation means as instruction information; a pseudo-random number original value obtaining means for obtaining an original value of a pseudo-random number based on a comparison result by the comparing means; A pseudorandom number generating program characterized by functioning as:

9. The interval of the tent map is an interval defined by an irrational number, 9. The pseudorandom number generating program according to claim 8, wherein the computer is caused to function as the initial value setting means so as to set an initial value to 1.

10. 10. The pseudorandom number generating program according to claim 8, wherein the initial irrational number is a numerical value using a square root symbol.

11. The pseudorandom number generating program according to claim 10, characterized in that the computer is caused to function as the comparison means by converting the result into a mathematical formula using a formula of the form (A-B)(A+B)=A2-B2 without a square root symbol and performing the comparison.

12. The computer, an initial value change time determination means for setting the initial value irrational number in the form of a+b√c, and for determining when to change the initial value by detecting whether or not the a exceeds a predetermined threshold value each time an iterative calculation is performed; an initial value changing means for changing the initial value when it is determined that the initial value has exceeded the predetermined threshold value; 11. The pseudorandom number generating program according to claim 10, wherein the pseudorandom number generating program functions as follows:

13. 9. The pseudorandom number generating program according to claim 8, characterized in that the computer is caused to function as the pseudorandom number original value acquisition means to acquire original values ​​of pseudorandom numbers of 2 or more bits at a time based on the comparison result by the comparison means.

14. The interval of the tent map is defined as an interval defined by rational numbers, 9. The pseudorandom number generating program according to claim 8, wherein the computer is caused to function as the initial value setting means so as to set the initial value to an irrational number.

Citation Information

Patent Citations

  • Chaotic wide band frequency modulator for noise reduction

    JP2011118878A

  • Pseudo-random number generator and program using chaos coupling system

    JP2017142697A

  • Random number generator

    JP2019168963A

  • Pseudo-random number generation device and pseudo-random number generation program

    JP2020042453A

  • Cryptographic decryption system, cryptographic decryption method, and cryptographic decryption program

    JP2022056275A