CN108563423B - Random seed generation device and method - Google Patents

Random seed generation device and method Download PDF

Info

Publication number
CN108563423B
CN108563423B CN201810343590.6A CN201810343590A CN108563423B CN 108563423 B CN108563423 B CN 108563423B CN 201810343590 A CN201810343590 A CN 201810343590A CN 108563423 B CN108563423 B CN 108563423B
Authority
CN
China
Prior art keywords
kaleidoscope
module
random
application
picture
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.)
Active
Application number
CN201810343590.6A
Other languages
Chinese (zh)
Other versions
CN108563423A (en
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.)
Shandong Inspur Scientific Research Institute Co Ltd
Original Assignee
Shandong Inspur Scientific Research Institute 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 Shandong Inspur Scientific Research Institute Co Ltd filed Critical Shandong Inspur Scientific Research Institute Co Ltd
Priority to CN201810343590.6A priority Critical patent/CN108563423B/en
Publication of CN108563423A publication Critical patent/CN108563423A/en
Application granted granted Critical
Publication of CN108563423B publication Critical patent/CN108563423B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a device and a method for generating random seeds, comprising an application module, a kaleidoscope module and a random seed generation module, wherein the application module is used for sending an application for acquiring the random seeds and sending the application to the kaleidoscope module; the kaleidoscope module consists of a light-emitting source, kaleidoscope equipment, a picture collecting module and a sending module, and is started after receiving the application of the application module, the light-emitting source irradiates the kaleidoscope, and meanwhile, the kaleidoscope randomly rotates to generate pictures, the generated pictures are collected and obtained by the picture collecting module, and then the collected pictures are sent out by the sending module; and the analysis module is used for acquiring the picture from the sending module and analyzing the received picture into the 16-system format content, wherein the acquired 16-system format content is the random seed. Compared with the prior art, the device and the method for generating the random seeds can simply generate a large amount of true random seeds according to the kaleidoscope principle.

Description

Random seed generation device and method
Technical Field
The invention relates to the field of electronics, in particular to a device and a method for generating random seeds.
Background
Random Seed (Random Seed) is a computer term, a Random number that is subject to a Random number and that is initially conditioned by a true Random number (Seed). The random number of a general computer is a pseudo random number, a true random number (seed) is used as an initial condition, and then a certain algorithm is used for continuously iterating to generate the random number.
At present, many electronic products have the function of generating random numbers, the size of the random numbers is as large as the shuffling of playing card games in a smart phone, and the size of the random numbers is as small as the randomness of load work at the moment of electrifying electronic equipment, and the realization of the functions can not be separated from the random numbers. When the random number is generated by using equipment such as a computer or a singlechip and the like, a random seed needs to be generated firstly, and then the random seed is matched with a random function to generate the random number.
In terms of public-private key encryption security, the random number is extremely high in randomness and irreproducibility, and therefore, in order to generate an unrepeatable random number, a method for generating a true random seed is very important.
In order to solve the problem, the patent provides a random seed generation device and a random seed generation method.
Disclosure of Invention
The technical task of the invention is to provide a device and a method for generating random seeds aiming at the defects.
An apparatus for generating a random seed, comprising,
the application module is used for sending an application for acquiring the random seeds and sending the application to the kaleidoscope module;
the kaleidoscope module consists of a light-emitting source, kaleidoscope equipment, a picture collecting module and a sending module, and is started after receiving the application of the application module, the light-emitting source irradiates the kaleidoscope, and meanwhile, the kaleidoscope randomly rotates to generate pictures, the generated pictures are collected and obtained by the picture collecting module, and then the collected pictures are sent out by the sending module;
and the analysis module is used for acquiring the picture from the sending module and analyzing the received picture into the 16-system format content, wherein the acquired 16-system format content is the random seed.
The light-emitting light source is a composite light source composed of at least two lights with different colors, namely, the light-emitting light source is composed of at least two devices capable of emitting lights with different colors.
The kaleidoscope equipment of the kaleidoscope module is provided with glass fragments, the glass fragments are randomly placed once before being used every time, the number of the glass fragments placed every time is more than or equal to 2, and the glass fragments are taken out after being used every time.
The picture collecting module adopts a photosensitive element or a projection element, and when the luminous light source irradiates on the kaleidoscope device, the photosensitive element or the projection element collects and displays pictures formed in the kaleidoscope device.
A method for generating random seeds is realized by the following steps,
firstly, applying for obtaining random seeds through an application module;
secondly, after the kaleidoscope module receives the application information, the kaleidoscope module starts to rotate randomly and generates random pictures;
and thirdly, the analysis module analyzes the acquired random picture and analyzes the random picture into 16-system format content, wherein the acquired 16-system format content is the random seed.
And before the kaleidoscope module in the second step starts to rotate, automatically putting at least two pieces of glass fragments into kaleidoscope equipment, and enabling the kaleidoscope equipment to be matched with the kaleidoscope equipment to form random pictures.
The kaleidoscope module in the second step rotates randomly, namely, the rotation speed and the rotation time of kaleidoscope equipment are random, so that the acquired pictures are random in shape.
The kaleidoscope module is also provided with a vibration device, when the kaleidoscope device starts to rotate randomly, the vibration device is started and enables glass fragments in the kaleidoscope device to be randomly distributed, and the vibration device is made of a micro device comprising a micro vibration motor.
Compared with the prior art, the random seed generation device and the random seed generation method have the following beneficial effects:
according to the device and the method for generating the random seeds, the random seeds generated by the invention can hardly reappear according to the kaleidoscope principle, the generated pictures provide a large amount of original random data and can flexibly meet the requirements of various random values, and the device and the method can simply generate a large amount of true random seeds, have strong practicability and wide application range and have wide application prospect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a diagram of an implementation example of the random seed generation apparatus of the present invention.
FIG. 2 is a diagram of an embodiment of a method for generating random seeds according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to specific embodiments in order to make the technical field better understand the scheme of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to the kaleidoscope theory, a certain number of colored glass sheets are arranged in the kaleidoscope, the number and the quality of the fragments in the same kaleidoscope are not changed, and infinite new patterns and new designs can be formed only by rotating the kaleidoscope to enable the fragments to be newly combined. Therefore, the generation of random seeds can be performed according to this theory.
As shown in fig. 1, a random seed generating apparatus includes,
the application module is used for sending an application for acquiring the random seeds and sending the application to the kaleidoscope module;
the kaleidoscope module consists of a light-emitting source, kaleidoscope equipment, a picture collecting module and a sending module, and is started after receiving the application of the application module, the light-emitting source irradiates the kaleidoscope, and meanwhile, the kaleidoscope randomly rotates to generate pictures, the generated pictures are collected and obtained by the picture collecting module, and then the collected pictures are sent out by the sending module;
and the analysis module is used for acquiring the picture from the sending module and analyzing the received picture into the 16-system format content, wherein the acquired 16-system format content is the random seed.
The light-emitting light source is a composite light source composed of at least two lights with different colors, namely, the light-emitting light source is composed of at least two devices capable of emitting lights with different colors.
The kaleidoscope equipment of the kaleidoscope module is provided with glass fragments, the glass fragments are randomly placed once before being used every time, the number of the glass fragments placed every time is more than or equal to 2, and the glass fragments are taken out after being used every time.
The picture collecting module adopts a photosensitive element or a projection element, and when the luminous light source irradiates on the kaleidoscope device, the photosensitive element or the projection element collects and displays pictures formed in the kaleidoscope device.
In the invention, after visible light passes through the kaleidoscope, a static picture can be obtained, the 16-system format of the picture file is the generated random seed, and when a new seed is generated, the kaleidoscope only needs to be rotated to obtain a new picture as the new random seed.
The reason for generating data in the form of pictures is that the picture format includes a large amount of data, and besides the kaleidoscope picture, the picture format is also affected by the illumination during sampling, so that the randomness of the picture is increased, and the data length included in the picture format can meet the length requirement of most random seeds at present.
In order to increase randomness and non-repeatability, the glass fragments added into the kaleidoscope each time can be randomly screened, and each group of fragments is immediately destroyed after being used, so that the possibility of repetition of random seeds is basically eliminated. In addition, randomness can be increased through random rotation speed and rotation time, and actions such as vibration can be added to increase the random degree of distribution of the glass fragments in the kaleidoscope. Other means of increasing randomness based on this principle are included.
As shown in fig. 2, a method for generating random seeds, which generates random pictures by injecting a composite light source into a kaleidoscope as a mechanism for generating random seeds. Thereby effectively and simply generating the unrepeatable true random seeds with high randomness in a large quantity.
The realization process is as follows,
firstly, applying for obtaining random seeds through an application module;
secondly, after the kaleidoscope module receives the application information, the kaleidoscope module starts to rotate randomly and generates random pictures;
and thirdly, the analysis module analyzes the acquired random picture and analyzes the random picture into 16-system format content, wherein the acquired 16-system format content is the random seed.
And before the kaleidoscope module in the second step starts to rotate, automatically putting at least two pieces of glass fragments into kaleidoscope equipment, and enabling the kaleidoscope equipment to be matched with the kaleidoscope equipment to form random pictures.
The kaleidoscope module in the second step rotates randomly, namely, the rotation speed and the rotation time of kaleidoscope equipment are random, so that the acquired pictures are random in shape.
The kaleidoscope module is also provided with a vibration device, when the kaleidoscope device starts to rotate randomly, the vibration device is started and enables glass fragments in the kaleidoscope device to be randomly distributed, and the vibration device is made of a micro device comprising a micro vibration motor.
At present, most of the generation methods of random seeds adopt reproducible random seed generation such as system time or user actions, and due to the possibility of reproduction, the random seeds generated by the methods cannot completely ensure the safety of the random seeds. In the invention, visible light passes through the kaleidoscope, the data of the whole picture generated after the visible light passes through the kaleidoscope is acquired as random seeds, and then the random seeds can be reduced according to the requirement through an algorithm to reach the required random number length. According to the kaleidoscope principle, random seeds generated by the method can hardly reappear, the generated pictures provide a large amount of original random data, the requirements of various random values can be flexibly met, and the method can simply generate a large amount of true random seeds.
The present invention can be easily implemented by those skilled in the art from the above detailed description. It should be understood, however, that the intention is not to limit the invention to the particular embodiments described. On the basis of the disclosed embodiments, a person skilled in the art can combine different technical features at will, thereby implementing different technical solutions.
In addition to the technical features described in the specification, the technology is known to those skilled in the art.

Claims (5)

1. An apparatus for generating random seeds, comprising,
the application module is used for sending an application for acquiring the random seeds and sending the application to the kaleidoscope module;
the kaleidoscope module consists of a light-emitting source, kaleidoscope equipment, a picture collecting module and a sending module, and is started after receiving the application of the application module, the light-emitting source irradiates the kaleidoscope, and meanwhile, the kaleidoscope randomly rotates to generate pictures, the generated pictures are collected and obtained by the picture collecting module, and then the collected pictures are sent out by the sending module; glass fragments are placed in the kaleidoscope equipment of the kaleidoscope module, the glass fragments are randomly placed once before being used each time, the number of the glass fragments placed each time is more than or equal to 2, and the glass fragments are taken out after being used each time;
and the analysis module is used for acquiring the picture from the sending module and analyzing the received picture into the 16-system format content, wherein the acquired 16-system format content is the random seed.
2. The apparatus of claim 1, wherein the light source is a composite light source composed of at least two different colors of light, that is, at least two devices emitting different colors of light.
3. The apparatus for generating random seeds of claim 1, wherein the image collecting module is a photosensitive element or a projection element, and when the light source is illuminated on the kaleidoscope device, the photosensitive element or the projection element collects and displays the image formed in the kaleidoscope device.
4. A method for generating random seeds is characterized in that the method is realized by the following steps,
firstly, applying for obtaining random seeds through an application module;
step two, after the kaleidoscope module receives the application information, the kaleidoscope module starts to rotate randomly and generates random pictures;
before the kaleidoscope module starts to rotate, at least two pieces of glass fragments are automatically put into kaleidoscope equipment, so that the kaleidoscope equipment is matched with the kaleidoscope equipment to form random pictures; the kaleidoscope module rotates randomly, namely, the rotation speed and the rotation time of kaleidoscope equipment are random, so that the acquired pictures are random in shape;
and step three, the analysis module analyzes the acquired random picture and analyzes the random picture into 16-system format content, wherein the acquired 16-system format content is the random seed.
5. The method of claim 4, wherein the kaleidoscope module is further provided with a vibrating device which is activated when the kaleidoscope device starts to rotate randomly and causes the random distribution of the glass fragments in the kaleidoscope device, the vibrating device being made of a miniature device comprising a miniature vibrating motor.
CN201810343590.6A 2018-04-17 2018-04-17 Random seed generation device and method Active CN108563423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810343590.6A CN108563423B (en) 2018-04-17 2018-04-17 Random seed generation device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810343590.6A CN108563423B (en) 2018-04-17 2018-04-17 Random seed generation device and method

Publications (2)

Publication Number Publication Date
CN108563423A CN108563423A (en) 2018-09-21
CN108563423B true CN108563423B (en) 2022-04-12

Family

ID=63535441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810343590.6A Active CN108563423B (en) 2018-04-17 2018-04-17 Random seed generation device and method

Country Status (1)

Country Link
CN (1) CN108563423B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004033709A (en) * 2002-07-03 2004-02-05 Hidemi Chibu Game toy which extracts random number
TW200919210A (en) * 2007-07-18 2009-05-01 Steven Kays Adaptive electronic design
CN107180356A (en) * 2016-08-17 2017-09-19 柴永 A kind of method for anti-counterfeit using kaleidoscope display pattern as distinguishing mark

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2211610Y (en) * 1994-11-18 1995-11-01 周理查 Laser kaleidoscope
CN1262497A (en) * 1999-02-04 2000-08-09 孟武 Method for making antiforge marker having encoded micro holes and its check device
CN1348747A (en) * 2000-10-13 2002-05-15 余鹏 Visual physiological recuperating instrument
KR20230104295A (en) * 2013-03-15 2023-07-07 카나리 메디칼 아이엔씨. Devices, systems and methods for monitoring hip replacements
CN104849865A (en) * 2014-02-14 2015-08-19 百隆光电股份有限公司 Kaleidoscope projection device
CN105512534A (en) * 2015-12-31 2016-04-20 湖南人文科技学院 Self-destroyable identity recognition system based on combined authentication of brain wave, iris and human face recognition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004033709A (en) * 2002-07-03 2004-02-05 Hidemi Chibu Game toy which extracts random number
TW200919210A (en) * 2007-07-18 2009-05-01 Steven Kays Adaptive electronic design
CN107180356A (en) * 2016-08-17 2017-09-19 柴永 A kind of method for anti-counterfeit using kaleidoscope display pattern as distinguishing mark

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
The Kaleidoscope switch-a new concept for implementation of a large and fault tolerant ATM switch system;L. Dittmann;《IEEE ATM "97 Workshop Proceedings》;20020806;683-690 *
一种真随机数发生器及其数字后处理设计研究;李昀芊;《科学家》;20170923;94-98 *

Also Published As

Publication number Publication date
CN108563423A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
US8379848B2 (en) Method of providing a portable true random number generator based on the microstructure and noise found in digital images
Ramachandran et al. The perception of apparent motion
TWI460606B (en) Authentication methods and systems of applying captcha
CN104091140B (en) A kind of information processing method and electronic equipment
Kamau An enhanced least significant bit steganographic method for information hiding
US9582968B2 (en) 3D lottery card
WO2018000608A1 (en) Method for sharing panoramic image in virtual reality system, and electronic device
JP2012081064A5 (en) GAME SYSTEM, TERMINAL DEVICE, TERMINAL DEVICE PROGRAM, AND GAME MACHINE
CN106791786A (en) Live broadcasting method and device
CN112668453A (en) Video identification method and related equipment
CN108563423B (en) Random seed generation device and method
CN113271486B (en) Interactive video processing method, device, computer equipment and storage medium
CN106993215A (en) A kind of information processing method and processing routine device
Hancock et al. Testing facial composite construction under witness stress
CN106658052A (en) Advertisement putting method and advertisement putting device
CN110300118A (en) Streaming Media processing method, device and storage medium
CN114697741B (en) Multimedia information playing control method and related equipment
Hulusic et al. The influence of cross-modal interaction on perceived rendering quality thresholds
CN108510424A (en) A kind of method and device of image procossing
CN107005847A (en) Position and adjacency beacon technique for strengthening privacy and security
CN210136481U (en) Virtual input device
CN106921631B (en) Data display method and device
Sorimachi et al. Study of dynamically user-changeable multiple infrared marker patterns
WO2001031384A1 (en) Improvements in three dimensional processing techniques and multi-dimensional devices
CN110096166A (en) A kind of virtual input method

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
TA01 Transfer of patent application right

Effective date of registration: 20220323

Address after: 250100 building S02, No. 1036, Langchao Road, high tech Zone, Jinan City, Shandong Province

Applicant after: Shandong Inspur Scientific Research Institute Co.,Ltd.

Address before: 250100 First Floor of R&D Building 2877 Kehang Road, Sun Village Town, Jinan High-tech Zone, Shandong Province

Applicant before: JINAN INSPUR HIGH-TECH TECHNOLOGY DEVELOPMENT Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant