摘要 |
PURPOSE: To increase security for the generation of a random number by correcting at least a part of an input by the calculation of the random number and data decided by a phenomenon reaching from an outside part to a processing unit independent of data included in the calculation. CONSTITUTION: A random number is generated by using a cipher calculation system 7 for enciphering a starting value S into a random number R with the support of a code value K. The starting value S and the code value K are stored in storage positions 2a and 2b of a memory. Each time the random number is requested, the random number is generated by using the starting value S and the code value K at that time by the cipher calculation system 7. The large part of the starting value S and the code value K is occupied by the random number, and those values are inputted through a keyboard or a serial interface. At least one part of the input is corrected by data decided by a phenomenon reaching from an outside part to a processing unit, so that the quality of the random number can be improved in an expectable and functional link. |