|
New solution
Thread splitting
Part 8
Creating a random number generator
The digital stream of Internet radio can be effectively used to create a high-quality random number generator in Android devices.
You can easily divide the digital stream of Internet radio (for example) into 7 streams. Select every 7th byte (shifted by 1) and write to a separate buffer. Such a sub-stream will bear little resemblance to the main Internet radio digital stream with music or speech.
If random numbers need to be received not very often, the sub-stream can also be divided into several streams.
But this is not yet the set of random numbers that we need.
You must specify a few bytes that the application will expect in the sub-stream. Once the byte sequence is found, we use the next number from the stream (let's call it NH) in the application.
The resulting number NH is used as a counter of call cycles of the standard random number generator in Android.
Those. if NH=9, then the RND generator will be called 9 times in the loop and the 9th generated number will be returned as a result.
Such sub-streams can also be synchronized across multiple devices without using a sync channel. The use of split digital channels as an entropy source further improves the quality of XOR encryption
Download GitHUB Project >>
JAVA Application Prototypes RadioRANDGen Two >>
Neural networks for searching data encoding formulas
Next PAGE >> Photobanks >>
Let's invent something else
For example. Why do military sea pilots need a can of foam
Thread splitting
|
|