CN113625993B - Random number generation device based on mechanical structure - Google Patents

Random number generation device based on mechanical structure Download PDF

Info

Publication number
CN113625993B
CN113625993B CN202110720604.3A CN202110720604A CN113625993B CN 113625993 B CN113625993 B CN 113625993B CN 202110720604 A CN202110720604 A CN 202110720604A CN 113625993 B CN113625993 B CN 113625993B
Authority
CN
China
Prior art keywords
detector
random number
rotating
base
rotating member
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
CN202110720604.3A
Other languages
Chinese (zh)
Other versions
CN113625993A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110720604.3A priority Critical patent/CN113625993B/en
Publication of CN113625993A publication Critical patent/CN113625993A/en
Application granted granted Critical
Publication of CN113625993B publication Critical patent/CN113625993B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/16Mechanical energy storage, e.g. flywheels or pressurised fluids

Abstract

The invention discloses a random number generating device based on a mechanical structure, which comprises a base, a rotating piece rotatably arranged on the base, a driving piece which is reciprocally arranged on the base and is used for driving the rotating piece to intermittently rotate, a detector which is used for detecting the rotation state of the rotating piece and generating corresponding electric parameters according to the rotation angle of the rotating piece after each rotation stop, and a random number generator which is connected with the detector through signals and is used for converting the electric parameters generated by the detector into digital signals. Therefore, because of the non-ideal characteristic of the mechanical structure in reality, the rotation angles of the rotating piece after the rotating piece is driven to rotate to stop at each time are slightly different, so that random angle values are formed in a certain range, different electric parameters are generated by the detector according to different rotation angles of the rotating piece after the rotating piece is stopped at each time, the electric parameters are converted into digital signals through the random number generator, random numbers can be conveniently and easily generated, and the production cost and the energy consumption are reduced.

Description

Random number generation device based on mechanical structure
Technical Field
The invention relates to the technical field of chip design, in particular to a random number generation device based on a mechanical structure.
Background
With the development of the chinese electronic technology, more and more electronic devices have been widely used.
Servers are an important component in electronic devices, which are devices that provide computing services. Since the server needs to respond to the service request and process it, the server has the ability to afford the service and secure the service. According to the different types of services provided by the server, the server is divided into a file server, a database server, an application server, a WEB server and the like. The main components of the server include a processor, a hard disk, a memory, a system bus and the like, which are similar to those of a general computer architecture, but have higher requirements in terms of processing capacity, stability, reliability, security, expandability, manageability and the like.
In the big data age, a large amount of IT equipment is centrally placed in racks in a data center. These data centers include various types of servers, storage, switches, and a large number of racks and other infrastructure. Each IT device is composed of various hardware boards, such as a computing module, a storage module, a chassis module, a heat dissipation module, a security verification module, and the like.
At present, the information security of the server is more and more emphasized, the reliability, timeliness and comprehensiveness of data security protection are being more and more tested, encryption and security chips are widely applied to the server, and random number generation is the key link of encryption technology, security verification technology and anti-theft technology.
In the prior art, a method for generating random numbers in a server is generally realized through an electromagnetic structure, namely, magnetization reversal phenomenon caused by a certain probability after spin polarization current is injected into a magnetic material is utilized, and the occurrence probability of the magnetization reversal phenomenon is obtained through injecting the spin polarization current, so that a real random number is generated through the physical phenomenon. However, the technical difficulty of realizing random number generation through an electromagnetic structure is high, the generation period is long, a set of electromagnetic system is additionally arranged on a main board, the circuit structure becomes complex, the production cost is high, and the energy consumption is high.
Therefore, how to conveniently and easily generate random numbers, and reduce production cost and energy consumption are technical problems faced by those skilled in the art.
Disclosure of Invention
The invention aims to provide a random number generation device based on a mechanical structure, which can conveniently and easily generate random numbers and reduce production cost and energy consumption.
In order to solve the technical problems, the invention provides a random number generating device based on a mechanical structure, which comprises a base, a rotating piece rotatably arranged on the base, a driving piece reciprocally arranged on the base and used for driving the rotating piece to intermittently rotate, a detector used for detecting the rotation state of the rotating piece and generating corresponding electric parameters according to the rotation angle after each rotation stop of the rotating piece, and a random number generator connected with the detector in a signal way and used for converting the generated electric parameters into digital signals.
Preferably, the rotating member is a flywheel or a gear, and the detector is configured to detect a rotation state of a rotating shaft of the rotating member.
Preferably, the rotating shaft of the rotating member is rotatably inserted into the detector.
Preferably, the detector is a potentiometer for generating a corresponding resistance value or a corresponding voltage value according to a rotation angle of the rotating member.
Preferably, the driving member includes a moving rod which is disposed on the base and can move linearly, and a tooth which is disposed on the rod body of the moving rod and is used for abutting against the tooth of the rotating member to drive the tooth to rotate once in the single-pass movement process.
Preferably, the driving member further comprises a spring, one end of the spring is connected to the base, the other end of the spring is connected to the rod body of the moving rod, and the expansion direction of the spring is parallel to the moving direction of the moving rod.
Preferably, a connecting table is arranged on the rod body of the moving rod, and the other end of the spring is connected to the wall surface of the connecting table.
Preferably, the base is provided with a guide sliding rail for sliding in cooperation with the motion rod.
Preferably, a limiting block for abutting against the connecting table to limit the maximum stroke of the motion rod is arranged on the base.
Preferably, the random number generator comprises an ADC module in signal connection with the detector, and a value generation module in signal connection with the ADC module.
The invention provides a random number generating device based on a mechanical structure, which mainly comprises a base, a rotating piece, a driving piece, a detector and a random number generator. The base is of a main body structure and is mainly used for installing other parts. The rotating member is provided on the base and is rotatable on the base. The driving piece is arranged on the base and can perform directional reciprocating motion on the base, and the driving piece is mainly used for driving the rotating piece to perform discontinuous rotation, namely discontinuous rotation, in particular to driving the rotating piece to complete one directional rotation motion in one reciprocating motion process of the driving piece. The detector is arranged on the base and is mainly used for detecting the rotation state of the rotating member and generating corresponding electric parameters according to the rotation stop angle of the rotating member after the single directional rotation movement is finished. The random number generator is in signal connection with the detector and is mainly used for converting electric parameters generated by the detector into corresponding digital signals so as to generate numerical values. Therefore, because of non-ideal characteristics of the mechanical structure in reality, such as friction influence of the rotating member during rotation, motion state deviation of the driving member during each reciprocating motion, driving state deviation of the driving member on the rotating member and the like, the rotating angle of the rotating member after each time driven by the driving member to rotate to stop is slightly different, so that random angle values are formed in a certain range, different electric parameters are generated by the detector according to different rotating angles of the rotating member after each time of rotation stop, and then the electric parameters are converted into digital signals through the random number generator, and the random numbers are output. Compared with the prior art, the random number generation device based on the mechanical structure provided by the invention utilizes the non-ideal characteristic of the mechanical structure to enable the rotating member to generate random motion parameter change in each rotating process, so that random numbers can be conveniently and easily generated, and the production cost and the energy consumption are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic overall structure of an embodiment of the present invention.
Fig. 2 is a schematic view showing a state in which the motion bar is at a single-pass maximum stroke.
Fig. 3 is a schematic diagram of a connection structure between the rotating member and the detector.
Fig. 4 is a schematic circuit configuration diagram of the random number generator.
Wherein, in fig. 1-4:
the device comprises a base-1, a rotating part-2, a driving part-3, a detector-4, a random number generator-5, a guide slide rail-6 and a limiting block-7;
the device comprises a motion rod-31, a convex tooth-32, a spring-33, a connecting table-34, an ADC module-51 and a numerical value generation module-52.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic overall structure of an embodiment of the present invention.
In one embodiment of the present invention, a random number generating device based on a mechanical structure mainly includes a base 1, a rotating member 2, a driving member 3, a detector 4, and a random number generator 5.
The base 1 is a main body structure and is mainly used for installing other parts.
The rotary member 2 is provided on the base 1, and is rotatably movable on the base 1.
The driving piece 3 is arranged on the base 1 and can perform directional reciprocating motion on the base 1, and is mainly used for driving the rotating piece 2 to perform intermittent rotation, namely discontinuous rotation, in particular to driving the rotating piece 2 to complete one directional rotation motion in one reciprocating motion process of the driving piece 3.
The detector 4 is arranged on the base 1 and is mainly used for detecting the rotation state of the rotating member 2 and generating corresponding electric parameters according to the rotation stop angle of the rotating member 2 after the single directional rotation movement is finished.
The random number generator 5 is in signal connection with the detector 4 and is mainly used for converting the electrical parameters generated by the detector 4 into corresponding digital signals so as to generate numerical values.
In this way, due to non-ideal characteristics of the mechanical structure in reality, such as friction influence of the rotating member 2 during rotation, motion state deviation of the driving member 3 during each reciprocating motion, driving state deviation of the driving member 3 on the rotating member 2, elastic force deviation of the subsequent spring 33, travel deviation of the moving rod 31, collision angle deviation between the convex teeth 32 and the gear teeth, and the like, the rotating member 2 is slightly different from each other in rotation angle after the rotating member 3 is driven to rotate to stop, so that random angle values are formed in a certain range, different electric parameters are generated by the detector 4 according to different rotation angles after the rotating member 2 is rotated to stop each time, and then the electric parameters are converted into digital signals through the random number generator 5 to output random numbers.
Compared with the prior art, the random number generation device based on the mechanical structure provided by the embodiment utilizes the non-ideal characteristic of the mechanical structure to enable the rotating piece 2 to generate random motion parameter change in each rotation process, so that random numbers can be conveniently and easily generated, and the production cost and the energy consumption are reduced.
In a preferred embodiment with respect to the rotating member 2, the rotating member 2 is in particular a flywheel or a gear. Meanwhile, the rotating member 2 is connected with a rotating shaft, and the detector 4 is mainly used for detecting the rotating state of the rotating shaft of the rotating member 2 so as to accurately judge the rotating angle of the rotating member 2 after single rotation is stopped. Of course, the detector 4 may directly detect the rotation state of the rotating member 2 itself.
As shown in fig. 3, fig. 3 is a schematic diagram of a connection structure between the rotating member 2 and the detector 4.
Further, in order to improve the detection accuracy of the detector 4, in the present embodiment, the rotary member 2 is specifically attached to the detector 4, and the rotation shaft of the rotary member 2 is inserted into the housing of the detector 4, and the degree of freedom of rotation is maintained. So arranged, the shaft of the rotary member 2 can rotate within the housing of the detector 4 and be closely detected by a related sensor within the housing of the detector 4, such as a photoelectric sensor, a displacement sensor, an image sensor, or the like.
In a preferred embodiment with respect to the detector 4, the detector 4 is embodied as a potentiometer in order to facilitate the generation of a corresponding electrical parameter in dependence on the detected rotation angle of the rotating member 2. The potentiometer is an adjustable electronic element, the action principle is similar to that of a slide rheostat, and the specific wiring position of the built-in circuit can be adjusted according to the rotation angle change of the rotating piece 2, so that the corresponding element generates sensitive resistance value change or voltage value change.
In a preferred embodiment with respect to the driver 3, the driver 3 mainly comprises a movement bar 31 and a tooth 32. Wherein the moving rod 31 is linearly reciprocated on the base 1 and is located at one side of the rotary 2. Generally, the linear movement direction of the movement bar 31 is kept collinear with the longitudinal direction thereof, and the end of the movement bar 31 is generally driven by a micro motor. The convex teeth 32 are arranged on the rod body of the motion rod 31, protrude out of the side wall of the rod body of the motion rod 31 by a certain height, and are mainly used for forming abutting collision with gear teeth on the rotating piece 2 in the single-way motion process of the motion rod 31 so as to form a rotating moment on the rotating piece 2 through abutting acting force and drive the rotating piece 2 to rotate in a single orientation.
As shown in fig. 2, fig. 2 is a schematic view of the movement bar 31 in a state of a single maximum stroke.
Further, considering that the moving rod 31 needs to perform linear reciprocating motion to drive the rotating member 2 to rotate during each motion, in order to facilitate automatic resetting of the moving rod 31, the embodiment adds a spring 33 in the driving member 3. Specifically, one end of the spring 33 is connected to the base 1, the other end is connected to the rod body of the moving rod 31, and the elastic expansion and contraction direction of the spring 33 is parallel to the moving direction of the moving rod 31. So configured, when the movement bar 31 reaches the limit position in a single movement (right movement in the drawing), the spring 33 will be stretched (or compressed) to the limit and then automatically reset to the initial position by the elastic force.
In general, considering that the convex teeth 32 provided on the moving rod 31 need to form an abutting collision with the gear teeth on the rotating member 2, the surface of the convex teeth 32 may be provided in a smoothly transitive wedge-shaped tooth shape so as to lightly and slowly collide with the gear teeth on the rotating member 2 during the going-back of the moving rod 31, thereby slightly rotating the rotating member 2 clockwise, then rapidly and heavily collide with the gear teeth on the rotating member 2 under the elastic force of the spring 33 during the returning-back, thereby rotating the rotating member 2 counterclockwise at a large angle, and the detection data of the detector 4 only need to record the rotation angle of the rotating member 2 during the returning-back of the moving rod 31.
Further, in order to facilitate the connection between the spring 33 and the moving rod 31, the present embodiment is provided with a connection table 34 on the rod body of the moving rod 31. Specifically, the connecting table 34 protrudes from the surface of the rod body of the moving rod 31, and is generally located on two opposite sides of the moving rod 31 with respect to the teeth 32. The other end of the spring 33 can be connected to the wall surface of the connecting table 34, so that the extending direction of the spring 33 is ensured to be parallel to the moving direction of the moving rod 31.
In addition, in order to ensure the stability of the moving rod 31 during the linear reciprocation, the present embodiment is further provided with a guide rail 6 on the base 1. Specifically, the length direction of the guide rail 6 is collinear with the length direction of the moving rod 31, and the end of the moving rod 31 is inserted into the guide rail 6, so that the guide rail 6 is used to guide the linear movement of the moving rod 31, and prevent the shaking or vibration during the movement.
Moreover, considering that the amount of expansion and contraction deformation of the spring 33 is not too large when the moving rod 31 moves, otherwise, the too large elastic force easily causes the too large impact force between the convex teeth 32 and the rotating member 2, which may cause damage, the present embodiment is further provided with the limiting block 7 on the base 1. Specifically, the limiting block 7 is located at one side of the motion rod 31 in the single-way motion direction, and is mainly used for forming an abutting connection with a connection table 34 arranged on the motion rod 31 to limit the maximum stroke of the motion rod 31 in the single stroke and limit the maximum deformation amount of the spring 33.
As shown in fig. 4, fig. 4 is a schematic circuit configuration diagram of the random number generator 5.
In a preferred embodiment with respect to the random number generator 5, the random number generator 5 mainly comprises an ADC module 51 and a number generation module 52. The ADC (Analog to digital converter, analog-digital conversion) module 51 is in signal connection with the detector 4, and is mainly used for converting an electrical parameter (analog quantity) generated by the detector 4 into a digital quantity. The value generation module 52 is in signal connection with the ADC module 51, and is mainly configured to generate a value, i.e. a random number, according to the digital quantity generated by the ADC module 51. In general, the value generation module 52 may be an FPGA (Field Programmable Gate Array ). For example, the FPGA may obtain a 31-bit 2-ary number or a 10-bit decimal number as the random number through the 31-bit ADC module 51.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (4)

1. A random number generating device based on a mechanical structure, which is characterized by comprising a base (1), a rotating member (2) rotatably arranged on the base (1), a driving member (3) reciprocally arranged on the base (1) and used for driving the rotating member (2) to intermittently rotate, a detector (4) used for detecting the rotating state of the rotating member (2) and generating corresponding electric parameters according to the rotating angle after each rotation stop of the rotating member, and a random number generator (5) connected with the detector (4) in a signal manner and used for converting the generated electric parameters into digital signals;
the rotating piece (2) is a flywheel or a gear, and the detector (4) is used for detecting the rotating state of the rotating shaft of the rotating piece (2);
the driving piece (3) comprises a moving rod (31) which is arranged on the base (1) in a linear movement manner, and a convex tooth (32) which is arranged on the rod body of the moving rod (31) and is used for abutting against the gear teeth of the rotating piece (2) to drive the rotating piece to rotate for a single time in the single-way movement process;
the driving piece (3) further comprises a spring (33) with one end connected to the base (1) and the other end connected to the rod body of the moving rod (31), and the expansion and contraction direction of the spring (33) is parallel to the movement direction of the moving rod (31);
a connecting table (34) is arranged on the rod body of the moving rod (31), and the other end of the spring (33) is connected to the wall surface of the connecting table (34);
a guide sliding rail (6) which is used for sliding in a matched manner with the moving rod (31) is arranged on the base (1);
a limiting block (7) used for abutting against the connecting table (34) to limit the maximum stroke of the moving rod (31) is arranged on the base (1).
2. A random number generating device based on mechanical structure according to claim 1, characterized in that the shaft of the rotating member (2) is rotatably inserted in the detector (4).
3. A random number generating device based on a mechanical structure according to claim 2, characterized in that the detector (4) is a potentiometer for generating a corresponding resistance value or a corresponding voltage value depending on the rotation angle of the rotating member (2).
4. A mechanical structure based random number generating device according to any of the claims 1-3, characterized in that the random number generator (5) comprises an ADC module (51) in signal connection with the detector (4), a value generating module (52) in signal connection with the ADC module (51).
CN202110720604.3A 2021-06-28 2021-06-28 Random number generation device based on mechanical structure Active CN113625993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110720604.3A CN113625993B (en) 2021-06-28 2021-06-28 Random number generation device based on mechanical structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110720604.3A CN113625993B (en) 2021-06-28 2021-06-28 Random number generation device based on mechanical structure

Publications (2)

Publication Number Publication Date
CN113625993A CN113625993A (en) 2021-11-09
CN113625993B true CN113625993B (en) 2023-06-20

Family

ID=78378567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110720604.3A Active CN113625993B (en) 2021-06-28 2021-06-28 Random number generation device based on mechanical structure

Country Status (1)

Country Link
CN (1) CN113625993B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5987483A (en) * 1997-01-13 1999-11-16 Leybold Systems Gmbh Random number generator based on directional randomness associated with naturally occurring random events, and method therefor
CN102073476A (en) * 2009-11-24 2011-05-25 索尼公司 Random number generating device, random number generating method, and security chip

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5987483A (en) * 1997-01-13 1999-11-16 Leybold Systems Gmbh Random number generator based on directional randomness associated with naturally occurring random events, and method therefor
CN102073476A (en) * 2009-11-24 2011-05-25 索尼公司 Random number generating device, random number generating method, and security chip

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种新的随机数生成法;王尧;交通与计算机;全文 *

Also Published As

Publication number Publication date
CN113625993A (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN100425943C (en) Position sensor based on capacity
CN104470313B (en) Assembling module and electronic installation
JP3847684B2 (en) Touch sensor structure
CN1160663C (en) Positioning apparatus
EP1342646A2 (en) Rotation-angle detecting device capable of detecting absolute angle with simple configuration
CN209659486U (en) Position detecting mechanism and mobile terminal
CN113625993B (en) Random number generation device based on mechanical structure
JP2021515320A (en) Non-contact Hall effect joystick
CN100593698C (en) Ultrasound electric motor universal test device
CN112600360A (en) Focusing motor, closed-loop control method of focusing motor and camera equipment
CN106170030B (en) Fall protection devices and terminal
Yuan et al. Integrated real-time pneumatic monitoring system with triboelectric linear displacement sensor
CN109361295B (en) Hall element angle measurement solution angle compensation method based on higher order polynomial
CN203177871U (en) Photoelectric rotation position measurer
CN102322881A (en) Non-contact passive hold-down photomagnetic multi-rotary absolute position sensor
US3478343A (en) Vibration integrating alarm
CN108923689B (en) Electronic equipment and transmission assembly
CN208207605U (en) A kind of ECU connector, ECU and ECU component
CN203163910U (en) Injection pump overload measuring device and injection pump
Zheng et al. An Inertial Noncontact Piezoelectric Rotary Energy Harvester with Linear Reciprocating Motion
CN1497429A (en) Radom data generating method and radom data generator
CN217084546U (en) Digital resiliometer
CN218221057U (en) Power storage module and gamepad equipment
CN208109141U (en) A kind of packaging system of integrated sensor
JP2006177924A (en) Displacement detector

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
GR01 Patent grant
GR01 Patent grant