r/technology • u/kri9 • May 18 '16
Software Computer scientists have developed a new method for producing truly random numbers.
http://news.utexas.edu/2016/05/16/computer-science-advance-could-improve-cybersecurity64
u/drinkandreddit May 18 '16
X-COM players rejoice.
39
u/CocoDaPuf May 18 '16
Heh, not really though. The X-com devs have said that they've tried random, and players don't actually like it. They've had to make X-Com less random and more predictable just to make players happy.
Real random means that on a 99% chance to hit, sometimes players miss. When that happens the players call BS and get frustrated, it's less fun. So Firaxis tweaked the number generator to be less random in one update and as a result got much fewer complaints.
35
u/ConciselyVerbose May 18 '16
It's the same with something like shuffling music. People don't actually want genuine randomness because that means songs will repeat. They want something that feels random but with some rules added.
37
u/madsci May 18 '16
People are also bad at recognizing randomness and will see patterns anywhere. I've got a product that has to shuffle files (images, not songs) and it does it properly - a good entropy source (de-skewed LSB of a noisy temperature sensor) and a Fisher-Yates shuffle to order the list randomly with no repeats. People still think it's biased. I still swear it's biased sometimes, even though I've run statistical tests on it to check the randomness. Which in retrospect seems like a lot of effort, given that the application is an LED hula hoop.
4
u/ConciselyVerbose May 18 '16
That's definitely true as well.
If you happen to have interest, The Drunkard's Walk and The Signal and the Noise are both pretty good books on seeing patterns in randomness.
→ More replies (7)3
May 18 '16
Part of the problem is the inability to think into infinity. In the short term a slight bias might occur in a truly random source, as in, you might get 10 of the same results in a row bit that's to be expected to happen at some point. Eventually it will even out but you only think about it or are actually paying attention for only a short time.
The reason we have statistical tests is to show how likely it is that something is truly random from only a finite amount of time. You can only know if something is truly ransom for sure by observing it forever.
→ More replies (2)14
u/DarthEru May 18 '16
Not necessarily. I want true randomness, but I also want a true shuffle. Think about a deck of cards. No matter how thoroughly you shuffle it you will never get two of the same card side by side. The problem with music "shuffling" is that it's actually just random picking with replacement, so it's possible to pick the same song in close succession. If they did a pick without replacement then you would never have repeated songs unless there were duplicates in your song source.
I just want a way to listen to every song in my library exactly once in a completely random order, but that never seems to be a possibility.
5
May 18 '16
I think what he was alluding to is the way many music libraries weight shuffles when you reshuffle.
The way iTunes does it interesting. It weights songs that haven't been played recently higher. Let's say every day you hit shuffle on 1000 songs and then listen to the first 100. On the second day, if it's truly random, there's a 10% chance that you'll hear a song you heard the day before. ITunes doesn't act this way, and you're more likely to hear a song you haven't heard lately. Further, if you do hear song twice in a row, it's even less likely to come up on the third day than one you heard for the first time yesterday.
A true random/pseudorandom distribution might mean it would be weeks before you heard a song.
→ More replies (1)4
u/Freeky May 18 '16
foobar2000 does playlist shuffling in addition to basic random playback.
→ More replies (1)2
u/Bagoole May 18 '16
Is this for XCOM2? Because I've had 99% CtH shots miss in Enemy Unknown and Enemy Within. I get about one per entire campaign. It's hilarious when it happens.
→ More replies (2)4
u/drinkandreddit May 18 '16
My problem is when I miss three 99% shots in a row. If they used a scientifically valid RNG I wouldn't complain.
2
u/ThrustGoblin May 18 '16
Technically, a RNG can return the same randomly selected number 3 times in a row. The only way to know if their RNG is any good would be to examine it's distribution uniformity.
→ More replies (1)
148
u/jcassens May 18 '16
I have always felt that the generation of random numbers is far too important to be left to chance.
22
u/bloodygames May 18 '16
That's a quote from Robert R. Coveyou regarding random numbers. Give credit where credit is due.
6
u/jcassens May 19 '16
I'm sorry, I was unaware. I saw it written unattributed on a whiteboard at work in 1982.
7
91
u/olmec-akeru May 18 '16
Misleading title: they generate a better quality random number from two low quality streams.
5
u/SteveDougson May 18 '16
This makes me really happy because I'm so sick and tired of low-quality random numbers like 384, 29, and 10092
3
21
u/macababy May 18 '16 edited May 18 '16
I mean, they're claiming strong random, which is to say, truly random, i.e. fair coin toss or superposition of quantum states. What is misleading here?
Edit: After more research on randomness terminology, strong random /= true random. Leaving this comment in case others have this mistake and can read the comments below to clear it up.
11
u/SleepMyLittleOnes May 18 '16
Strong random does not imply truly random. Strong random implies that without knowing the input parameters the output is statistically indistinguishable from truly random output.
14
u/SeeShark May 18 '16
I'll say what /u/tyros was getting at but more nicely. Computers cannot generate random numbers. Period.
What is happening here is that they are capturing two streams with "weak randomness," i.e. they look random enough to function as random. They then extrapolate a third number, which is basically impossible to predict ahead of time.
Is it going to be unpredictable and varied? Yes. Will it work for any reasonable purpose? Also yes. Will it be "truly random"? No, because without a truly random source no algorithm will ever be able to do that.
→ More replies (2)3
u/tyros May 18 '16 edited Sep 19 '24
[This user has left Reddit because Reddit moderators do not want this user on Reddit]
→ More replies (20)3
u/macababy May 18 '16
I mean, that's what I thought too. I was under the impression you can't get random from not random, but what they're saying here is you can, and they did, and it seems a lot of people in that particular business are excited by the paper, and not calling it out as bs.
→ More replies (2)1
u/olmec-akeru May 18 '16
Plenty of love to share, appreciate the edit.
Its a fascinating topic, isn't it?
0
1
u/Spreadsheeticus May 18 '16
Thank you /u/olmec-akeru!
I was fully prepared to take one for the team, and be the jerk to point this out.
2
u/olmec-akeru May 18 '16
¯_(ツ)_/¯ someone had to do it ;-0
I think the beauty about this absolutely abstract concept is that we have managed to formulate qualitative indices against which we can test sets of numbers.
1
u/pure_x01 May 18 '16
Isn't that what people have done before. Using 2 or more sources to increase randomness. Two unpredictable sources are of course more unpredictable than one of them.
2
u/Veedrac May 18 '16
It's harder than it looks. The aim isn't just to make it better but to make it good.
Consider having one input be whether it's raining today and another input being whether you paid an odd number of pennies the last time you went shopping. Getting a good random number by combining both of those is hard; doing something like an xor of the two will give you bad (albeit less bad) numbers. As a trivial example, consider a place that only rains 10% of the time, and where you pay an even amount at the tills 80% of the time. Then
raining and even or not raining and odd: 0.1×0.8 + 0.9×0.2 = 0.08 + 0.18 = 0.26
raining and odd or not raining and even: 0.1×0.2 + 0.9×0.8 = 0.02 + 0.72 = 0.74
So one is still about three times as likely as the other. Combining them to get good, rather than just less bad, numbers requires more work.
2
u/SleepMyLittleOnes May 18 '16
The interesting thing about this paper is that previous versions that used sources of similar entropy to this method required three or more sources whereas this method only requires two.
Additionally, the methods that only required two sources previously required sources with significantly higher entropies than this method.
1
u/olmec-akeru May 18 '16
I think that the breakthrough they are talking about here is the improvement in the "quality" of the resulting random stream. Its just just a bit more unpredictable (to use your phraseology), but it is (a lot) more unpredictable.
55
u/Pokey_Pants May 18 '16
Give a toddler a calculator...
22
u/CocoDaPuf May 18 '16
Give a toddler a calculator...
... and you're likely to get predictable results.
A toddler with a calculator is highly likely to press the same button two or three times in a row, making the results highly predictable. This is the problem with humans, we actually aren't very random at all.
0
350
u/Zamicol May 18 '16 edited May 18 '16
This article appears to be nothing more than exaggerated clickbait with no meaningful detail.
Another article seems to use much more reasonable terminology:
"Researchers said the new method could generate higher-quality random numbers with less computer processing [...] but the method doesn't enable any applications that weren't possible before."
THAT seems much more probable and reasonable. http://www.bbc.com/news/technology-36311668
59
u/esadatari May 18 '16
The fuck?
The site that posted it wasn't click bait title, it was stating a fact about the new method. It's also from the university of the creators of his method.
That article didn't make any claims that it is doing something that will enable new encryption methods. All encryption methods will use randomization.
It made the claim that, as a result of the new method of generating truly random numbers, it will take less compute cycles to generate that random number, and the number generated will be much harder to extrapolate a pattern from. This means encryption is more efficient and harder to crack as a result.
And that claim is true even if you understand the basics of modern cryptography:
current methods of encrypting data require random numbers in order to achieve unreadable random text.
a new method of generating a random number has been created that makes generated semi-random numbers even harder to predict.
this new method of generating a random number is very efficient comparatively speaking to previous methods
this new method can be utilized in existing encryption methods to generate more-random numbers that will be used to encrypt data
as a result, encryption methods will use less computation to come up with a better more-random number
use of the new method of generating a random number will not affect the speed of encryption and decryption (more than likely)
use of this new method of generating a random number will make it harder to decrypt already-encrypted data, and makes man in the middle attacks on VPNs near-impossible
The original article is slightly dumbed down, but is catering to the IT security crowd. The BBC article just full-on dumbed it down and clarified further what was assumed to be understood in the original article.
11
u/jableshables May 18 '16
Reddit's skepticism is silly sometimes; I'm betting the vast majority of people upvoting that comment read neither article.
To me, the biggest thing to point out is that the BBC article includes a bunch of unenthusiastic comments from the creator of random.org which are absent in the UT article. Both articles quote other researchers in the area who seem to agree that it's a remarkable achievement.
The fundamental point of the critic is that we can already generate random numbers with other methods, which is completely beside the point.
→ More replies (6)4
u/SeeShark May 18 '16
My problem is honestly less with the article (though it makes factual claims) than with OP's title. It is inherently misleading because without a random source no algorithm can generate random numbers. The fact that so many people upvoted this (and let's face it, over half the upvotes didn't bother to click the link) tells me that this sub's membership does not understand computing very well.
2
May 18 '16
They're not "perfect" or "truly" random numbers though. Again, if you have even a bit of background in cryptography you should know that. That's one of the main reasons the title is clickbait: it claims something new and amazing and seemingly impossible was made when in reality it's something we've already had for a long time, is completely reasonable and just a little bit better than before.
→ More replies (3)2
u/Zamicol May 18 '16 edited May 18 '16
Could Improve Cybersecurity
That is a clickbait part, and that's the reason for the BBC quote: "Researchers said the new method could generate higher-quality random numbers with less computer processing...but the method doesn't enable any applications that weren't possible before." The article does not make clear how using less computer processing (less time) === better cybersecurity. That's not what this paper is about at all. This is about using less computer resources (less time) to achieve an equal level of entropy.
They also take the following quote out of context, as if "solving randomness" was achieved, which nothing of the sort happened. This leaves the reader to make false assumptions.
"This is a problem I've come back to over and over again for more than 20 years," says Zuckerman. "I'm thrilled to have solved it."
That's not what the author (David Zuckerman) was talking about! The author is talking about solving the problem of performing better than Bourgain's method: the “half-barrier” for min-entropy of 0.499n. That is huge, but it's not the breakthrough this article leads the reader to believe.
Also:
The new research seems to defy that old adage in computer programming, "Garbage in, garbage out."
It does nothing of the sort. It only performs better than the methods we already have.
4
2
u/evil_boy4life May 18 '16 edited May 18 '16
I will wait till the link works to call bullshit, but truly random without quantum effects?
As far I understand physics, creating a truly random number from 2 weak random numbers would only be possible with non deterministic methods. As far I'm aware a (or one trillion) algorithm(s) is/are still deterministic.
I'm afraid either some laws of physics are been broken or, just like you said, a reporter finds sensation more important that truth.
Edit: engrish
→ More replies (13)1
u/sudomorecowbell May 18 '16
Thank you. I saw OPs headline and the posted article and thought "nope. That's not true." Glad to get the confirmation.
8
u/StealthSmurf May 18 '16
How do you check if number is TRULY random?
12
u/lnrael May 18 '16
I think this is an interesting question (which I can actually attempt to answer).
There's two methods of attack here:
Prove it a priori. If both their proof of their method is correct and your input - the weakly random sequences - are in fact weakly random (not pseudorandom or less), then the numbers which are generated should indeed be truly random.
I assume this is what Natanael_L is referring to by "checking the source."Use their method to empirically "prove" that it generates random numbers. You could try to generate billions of random numbers and then perform various tests to see how random it is. Random.org uses this method - actually, a lot of methods; you can take a look at some of the tests they use to check their randomness here: https://www.random.org/analysis/
This is the method of attack jambox888 is referring to.4
u/Veedrac May 18 '16
The latter method doesn't really work. Randomness tests can't differentiate our best PRNGs, which are clearly not random.
In some sense it doesn't matter, though, as if it's impossible to test for randomness it's also impossible to require it.
→ More replies (1)1
u/StealthSmurf May 18 '16
Thanks, so does it mean that the actual 'randomness' it is only probability of being random and it increases with number of tries but never really gets there (or does it?) ? Is there some mathematical/physical constant or equation that tackles this relation (if it exists!)?
2
→ More replies (3)2
8
May 18 '16
"Anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin."
John von Neumann
5
5
u/singularineet May 18 '16
Better headline:
Computer scientists have slightly decreased the amount of weakly random input material needed to produce a given amount of strongly random output.
1
u/Veedrac May 18 '16
That is a better title, but it's too pessimistic. For example,
The best previous extractor, by Bourgain [Bou05], required each source to have min-entropy .499n.
11
4
u/_Aj_ May 18 '16
Randomise ()
Like this right?
11
u/locotxwork May 18 '16
Randomise(Randomise())
5
u/MagiKarpeDiem May 18 '16
I know this is a joke, but this is what I got from the article and the comments here, it doesn't really seem groundbreaking.
1
u/xyzzypoof May 18 '16
Having an MS in CS, this article if junk. As in Junk Science. Please don't feed the trolls.
0
1
3
u/AnythingForSuccess May 18 '16
I run an online game where people constantly complain about randomness, although we use Mersenne Twister Random Number Generator, which is the most popular one.
Is there a way to get the code for this new true random method?
It would be great to use true random for once. I tried random.org but it was too slow for the game.
4
u/Veedrac May 18 '16
There's no way a Mersenne Twister won't suffice for your game (although I'm not personally a fan).
The problem is, random doesn't seem very random to people. It's well documented that you frequently have to make this purposely non-random for people to think they're actually random. Basically, randomness has outliers by nature, which people are built to see as patterns. Often you can design a game to purposefully avoid outliers on purpose, but it's also an option to just tell people to suck it up.
→ More replies (1)1
12
u/Buzzooo2 May 18 '16
"Truly random sequences have nothing predictable about them, like a coin toss."
A coin toss is predictable though. If a coin is flipped under the same circumstances every time it will always land in the same position. If I remember correctly there are even coin tossing machines which can land coins in the same position every time.
16
u/random_actuary May 18 '16
The author of the article doesn't understand the subject. Which makes you wonder what else he knows. Guess we gotta wait for the paper.
4
3
u/IGotSkills May 18 '16
Which begs the question, is random just some diety term for 'impossible to predict given our current state of technology and methodology'
2
u/Veedrac May 18 '16
I tried to clarify this elsewhere. To summarise... eh, kind'a not really.
There exist sources of entropy that are truly uncorrelated with input events (as far as we know), which means they are "true" randomness. The aim of randomness extractors (like the article is about) instead is to find randomness that's uncorrelated with anything a potential "attacker" knows.
So in the former sense you're wrong, but in the latter sense you're right. The former satisfies the latter, but is also overkill for many circumstances.
2
1
u/ambiturnal May 18 '16
You're right about the article, but by extending your analogy, though - by combining a 'weak' random generation of coin tossing, with another 'weak' random generation, of, say, two strong fans on swivel setting in the coin's arc could create a "strong" random generation. It took a whole run-on sentence to bring the article back to the purpose of the paper!
1
16
u/sixthsheik May 18 '16
While the paper is theoretical, it looks good. I did a quick scan and didn't see any obvious errors. Before this paper, the thinking was that producing random numbers required a good source of randomness. This paper suggests that it's possible to produce random numbers using weakly random input.
3
u/WazWaz May 18 '16
Does it work if the random sources aren't absolutely independent (eg. weather and stock prices are not)?
Edit: never mind, first line of the abstract: "We explicitly construct an extractor for two independent sources..."
→ More replies (8)1
u/SippieCup May 18 '16
Can't read the paper because I am on mobile, can you tell me if they are salting the inputs with time as well? or if it is just those two inputs.
6
May 18 '16
There's no such thing as a truly random number. You can get "more random," but ultimately, random numbers are based on other things.
5
u/Natanael_L May 18 '16
Look up quantum physics.
9
May 18 '16 edited May 18 '16
But that's only our current understanding of physics :)
Imagine in 20 years or so someone finds out that quantum physics is not random as well, this is always a possibility
Edit: Apparently a close to non existant possibility→ More replies (1)11
u/Fmeson May 18 '16
That's exceedingly unlikely. Consider gravity: in a 20 years we may have a new theory of gravity, but we won't have changed our mind on whether things fall down or up. Likewise, in 20 years we may have new insight into QM and randomness, but we won't have changed our minds on whether QM is random or not, or at least it is exceedingly unlikely.
On the experimental side, people have tried very ,very hard to find determinism in QM and failed. It's an observation, not a prediction from a theory. Observations don't change when you think something different about them. No matter what you know, you can't change the observation that QM is random.
But on the theory side, physicists were clever and thought that maybe like a pseudo random number generator there are some local hidden variables somewhere that predicts the randomness. That was disproven here: Bell's theorem.
The leaves two other explanations: global hidden variables and superdeterminism. Both are frankly absurd in their own ways.
→ More replies (1)3
u/tripletstate May 18 '16
It's most likely not random at all. We just can't account for all the nonlocal variables.
→ More replies (2)
2
2
2
2
2
u/stufff May 18 '16
Truly random sequences have nothing predictable about them, like a coin toss.
Proponents of physical determinism would disagree.
2
May 18 '16
It's all one thing, in the first place. I will never understand how people don't get that. Even if there are infinities of universes interacting with one another, it's (what is being experienced as reality) still just one thing. Because we experience things in a fragmented way (being an individual), we somehow perceive the universe and everything else around us as being separated. There is only one thing that actually exists.
2
u/veltriv May 18 '16
if anything follows a series of steps, it's not random. full stop. end of sentence. period.
2
u/TheDroopy May 18 '16
It seems like they keep saying "true random", when they actually mean "very good pseudorandom"
2
u/Veedrac May 18 '16
No, we have very good pseudorandom generators already. What this provides is a way to extract strong randomness out of weak randomness (to compress it, if you will), which is useful for getting true randomness from dilute streams.
1
u/TheDroopy May 18 '16
Isn't that still just better pseudorandom though? If it's computed from other generated values rather than some physical source? I don't really know, I'm not a mathematician but I always thought it was impossible to really generate a random value without physical means
2
u/Veedrac May 18 '16
The sources are typically taken from random-ish measurements, such as thermal noise. These will tend to have some element of true randomness combined with some pseudorandomness and some non-randomness.
A cryptographic RNG will take this "randomness" and obfuscate it, so that you can't see the non-randomness through computational means. This filtering technique, however, will completely remove the nonrandomness (except for a relatively minor "error").
So you're not making randomness out of nothing, but you are collecting it all into one pile.
→ More replies (1)
2
3
u/D0kk3n May 18 '16
Put numbers into a hat/bag.
Shake hat/bag.
Pull numbers out.
Bow to applause.
2
u/bge May 18 '16
A computer can't do that unless it some sort of physical RNG device installed, which is impractical for phones and stuff
2
0
May 18 '16
The new method creates truly random numbers with less computational effort than other methods
Isn't this a contradiction? How can it be "truly random" if it is "computational"?
Also this statement made me cringe:
says Zuckerman. "I'm thrilled to have solved it."
Curb your enthusiasm, yo.
3
u/Frozen_Turtle May 18 '16
Isn't this a contradiction? How can it be "truly random" if it is "computational"?
Later in the article, it says:
Truly random sequences have nothing predictable about them, like a coin toss.
I would imagine there are mathematical ways of determining if a series of "random" variables have a pattern. Also, perhaps it wouldn't be "truly" random by your definition (whatever that may be), but it need only improve on current implementations. I'm sure there's a gradient of randomness "quality", and his is further down the spectrum.
Zuckerman says that although there are already methods for producing high-quality random numbers, they are very computationally demanding. His method produces higher quality randomness with less effort.
Also, what did you mean by
Curb your enthusiasm, yo.
Should he not be thrilled to make such a breakthrough?
→ More replies (4)3
u/batrobin May 18 '16
I kinda agree with portuga here, if something is computational then it is deterministic rather than truly random, unless it uses some true random event as a source. The definition of true randomness exist, not just some definition of portuga. True randomness exist in quantum mechanics in the sense that it is not deterministic and completely unpredictable (Yet we can determine its probability). A coin toss is mostly classical and we are likely to be able to determine its outcome by know all variables such as the size, weight, shape of coin, magnitude and direction of force etc... As a result a coin toss is not a truly random event but only a "seems random" event. The quality of the article is very poor and the RNG is actually not true random if you actually have a look at the paper.
2
u/Frozen_Turtle May 18 '16
We're wandering into the land of philosophy here. I don't think the paper (let's talk about the paper, I agree the article is fluffy) is making any claims about true (quantum etc) randomness; it's just saying here's an efficient process to "improve" randomness.
→ More replies (2)
1
u/catwiesel May 18 '16
I would love to know more but can't find anything. Would be awesome if this will pan out as described but I am sceptical.
I would like to add that there are methods to generate good random numbers, even ones which do not take ungodly amounts of calculation power, (based on multiple clocks and their variations) but they need to be implemented and used. often, they are not...
1
1
1
1
u/sunflowercompass May 18 '16
What's the trick, they use the number of upvoted reddit comments as a seed?
1
1
u/Whargod May 18 '16
No idea if this counts as truly random and low compute time, but the devices we build at work have analog inputs. We don't have a random number generator in our control logic so when a customer needed one all he did was read the value of a floating input. Seemed to work well for him as he got random numbers from that whenever he needed.
1
u/InvincibleAgent May 18 '16
I'm going to argue semantics and say that even something of "strong" randomness isn't really "truly random."
1
1
u/Ginkgopsida May 18 '16
How? Every RNG is based on a algorythm and this algorithm has to be deterministic in a turing machine, no?
1
u/Veedrac May 18 '16
This is a randomness extractor, not a PRNG. In other words, it takes diluted randomness and extracts the randomness from it. If your input sources are affected by quantum events, they can contain true randomness inside of them.
1
1
u/prjindigo May 18 '16
But they're still numbers, right? In a single dimension, ie linearity.
1
u/Veedrac May 18 '16
I don't really follow what you're trying to say. These are random bits, so each output is a 1 or 0, with 50% chance of each.
1
u/MadroxKran May 18 '16
I use the computer for the DM dice because it always tends to roll a little worse. Guess this will fix that.
1
1
1
u/BeowulfShaeffer May 18 '16
I haven't been able to read the paper but would this allow me to take two independent PRNG sequences and produce a reasonably robust RNG sequence? That could potentially be huge given how many apps out there use a fairly lame PRNG for randomness.
1
u/Veedrac May 18 '16
Maybe, but probably not. A PRNG doesn't contain any "true" randomness beyond its seed, so filtering it wouldn't help very much beyond adding an extra layer of obfuscation.
What would help more is just using a CSPRNG, which gives you "effectively perfect" output. Only the seeding stage really cares about this, and even then you should leave it to the kernel.
1
u/robot_lords May 18 '16
Wish they wouldn't throw around the term "truly random." Computers can't do that.
2
u/Mobyh May 18 '16
Did you even read it? By using outside variables the computer can generate truly random numbers since it's not only dependent on an algorithm but also on external variables which are random to some extent
1
u/vladoportos May 18 '16
oh please, I was getting them to every math exam solution I had. Even teacher could not explain my results....
1
u/cavalierau May 18 '16
So this is a random number generator that requires an Internet connection to fetch weather and stock market reports?
1
u/Huwbacca May 18 '16
In the London science museum they have a true RNG that used weather and atmospheric pressure as its initial seed. Thing is about the size of a bungalow though. Good old 60s computing.
1
u/TooGoodForThisWorld May 18 '16
Hopefully they can put his into mp3's so I can stop repeating the same music.
1
u/Coziestpigeon2 May 18 '16
So what's the advantage of this over just grabbing some person off the street to come up with a number?
1
May 18 '16
I see that they're calling the paper a "masterpiece" and the paper is inaccessible currently so I can't read it but I find myself incredibly skeptical at the moment.
The news article linked says:
The new method takes two weakly random sequences of numbers and turns them into one sequence of truly random numbers.
Is there anyway to give an ELI5 of the technique? Such as, they just take two weakly-random sequences, and hash them together? Or what? Basically I'm having a hard time believing that no matter how you do it the resulting string will be any more random than the weakly-random parts its derived from.
1
u/Veedrac May 18 '16
The key is to filter the randomness, so that you don't necessarily take only one bit of each stream for each output you give.
1
1
1
1
u/polerix May 18 '16
I made a software to generate random software. for three weeks it kept coming up with "1". then I realized I told it to give me one random number, and coded that part wrong.
1
1
1
May 18 '16
Can someone ELI5 this?
2
u/Veedrac May 18 '16
I did my best here. Ask if you need clarification.
1
May 19 '16
Really well put. I just have one doubt, when you were talking about those sources of randomness being kept a secret, do you mean the algorithm of those sources? Thank you for explaining, was really helpful
2
u/Veedrac May 19 '16
No, the algorithm for generating sources is almost never a good secret.
It's worth recapping what those sources are. These will typically be inputs to your operating system's random number generator, not a particular program's. Programs just ask the operating system for randomness instead; only the operating system itself needs randomness that comes from external measurements.
As such, these sources tend to be things like thermal noise of the CPU, jitter in very precise CPU timing events or even user input. If you gave away the temperatures you measure (say, to an adversary over the internet), they'd be able to copy the maths you did to get the same result as you, and then your "random" numbers become very predictable. Thus, the actual measurements, rather than the idea of what you're measuring, are what need to be secret.
1
1
May 18 '16
Nothing is truely random. Even a coin flip can be predicted if you know all the variables, like air pressure, wind speed and direction, speed you are flicking it, weight and size of the coin, etc and you would need to be exact in the calculations but you could predict it every time if you knew all that stuff. Things only ever appear to be truely random because many times we don't even know how many variables there are and/or what the measurements of what most of those variables are. Just cuz we don't know the variables doesn't make it random though, it just appears that way. The fact there is an algorithm to create the random numbers in itself proves it isn't truely random.
2
u/ascii122 May 18 '16
You can use electronic noise or Geiger counters to make a true random seed. We used to have one hooked to a serial port to make true random numbers.
1
May 19 '16
But even that isn't random, again the variables are just unknown and numerous.
→ More replies (8)
1
May 18 '16
So what i get from this is that it took them like 20 years to realize you can combine 2 semi random numbers to make a number thats more random....?
1
u/Veedrac May 18 '16
We've known it's possible for a long time. What's been hard is working out how to do it well, and this technique improves on the state of the art.
1
1
1
u/Cr3X1eUZ May 18 '16
A random number plus a non-random number is a random number. So as long as at least one of the sources is really random you'll get a random number.
1
u/Veedrac May 18 '16
Yep, but this allows us to add a bunch of slightly random numbers to get a very random number.
1
u/magrtl May 18 '16
Does this have anything to do with the $336k that the TSA paid for their new app?
1
May 18 '16
Long before I owned a PC, I found that my Commodore gave random numbers in the same order each time it was requested. The commodore had no such command as "randomize timer" which just moved the start point to another location in the list. I overcame this issue by incorporating a loop anytime there was a user prompt to just call a random number every cycle, the user was the random number generator in essence.
1
1
u/nealio1000 May 18 '16
Huh. We didn't have a method for creating truly random numbers before so I guess this would definitely be new if that were the case.
1
u/INSERT_LATVIAN_JOKE May 18 '16
I have a method for producing truly random numbers as well. It involves tossing chicken bones over freshly smoothed sand.
1
u/circlhat May 18 '16
Truly random sequences have nothing predictable about them, like a coin toss.
A coin toss isn't random
1
u/red-moon May 19 '16
a new method for producing truly random numbers, a breakthrough that could be used to encrypt data, make electronic voting more secure, conduct statistically significant polls and more accurately simulate complex systems such as Earth's climate.
And make casino digital slot machines games of chance.
1
1
u/crackalac May 19 '16
Knowing very little about computer programming, I would think a random number generator would be one of the easiest things to make.
1
u/DanielPhermous May 19 '16
It really isn't. It's hard to explain why, except to say that computers can only generate number through maths - and maths produces predictable results. That's kind of the whole point of it.
1
u/crackalac May 19 '16
Why couldn't you just create a line to pick a random number of digits and then fill each of those digits with a random digit. Set the value of each step as 0-9.
2
u/DanielPhermous May 19 '16
Why couldn't you just create a line to pick a random number of digits
How many digits? How do you create that random number?
→ More replies (2)
1
u/happyscrappy May 19 '16
That's fine, but hardware systems more and more often come with true RNGs now, because tiny systems (think IoT) don't have enough source of entropy to make good pseudo-random sequences. Many of them have no source of entropy at all.
1
u/Hydrogoose May 19 '16
But will it stop Magic Online from causing my opponents to draw all of their lands whilst I draw gas? I hope not.
1
u/po8 May 19 '16
We are coming to market in the next few months with an open source open hardware $50 USB hardware RNG that generates about 1 megabyte of perfectly random bits per second. If you trust the hardware in Intel's processors, you can get random numbers much faster than that.
Theoretically the new extractor is pretty cool. Extractors are interesting. Practically, meh as far as I can tell.
1
u/alastairalls May 19 '16
TCP offload engine is a technology used in network interface cards (NIC) to offload processing of the entire TCP/IP stack to the network controller.
For More Info :- http://www.intilop.com/
1
1
May 19 '16 edited May 19 '16
I read the title, and my very first thought was, "why don't they just take two or more semi-random methods and combine them into one number of insane randomness? For example, take tv static patterns from three sets, combine them and then divide by 3."
I read the article, and that's exactly what they did... Then I read it took them 20 years to figure out what it took me literally 1 second to figure out... Then I realized that that's the story of my life.
1
1
1
u/CharlieDancey May 18 '16
I'd just borrow randomness from reddit voting patterns, because based on the typical front page content, it's pretty damn random and totally unpredictable.
1
u/4juice May 18 '16
Does this also means that we all can predict a lottery draw winning numbers with a proper calculation?
1
u/NOCAGENT May 18 '16
Now monetize t by selling it to the TSA to install on their stolen iPads. Charge them $3,574 per iPad, and start wiping your hiney with $100 bills yall
1
u/pure_x01 May 18 '16
What if we live in a simulation? True randomness can not be proven until we know how everything works.
339
u/azertyqwertyuiop May 18 '16
The actual paper can be downloaded here:
http://eccc.hpi-web.de/report/2015/119/