News for hackers. Stuff that matters.
Re:How to safely generate a random number by tveita on Tuesday February 25, 2014 @11:18PM (#7302858)
How about the very post I replied to?

> the bug that is Linux's willingness to give you output from an unseeded RNG

So there you have it. But don't worry, no one uses this "Linux" thing, certainly not in embedded systems.

https://factorable.net/

Re:How to safely generate a random number by tptacek on Tuesday February 25, 2014 @11:29PM (#7302893)
Keep reading. I think you stopped too early.
Re:How to safely generate a random number by tveita on Wednesday February 26, 2014 @12:12AM (#7303040)
I read it all, don't be a jerk.

When you're writing a program for generic use, you can't trust the underlying system to be set up above and beyond a stock install. If you want to use seeding as a workaround, it should be done from every program that requires secure randomness. That doesn't seem to be what you're advocating. And if you're just generating a key, why not read it directly from random instead?

You can pretend that urandom gives good randomness and be surprised when you get key collisions. Just like you can pretend that strncpy null-terminates strings and be surprised when you get a buffer overflow vulnerability. That makes you a menace.

For what's it's worth, I agree that an adequately seeded CSPRNG should never 'run out' of entropy, and I wouldn't mind if Linux got a BSD-style shared random/urandom. But as it stands, urandom is not guaranteed to be adequately seeded, and I have no idea why you would advocate taking that risk.

Re:How to safely generate a random number by tptacek on Wednesday February 26, 2014 @08:17AM (#7304690)
Oh, we're talking past each other. Sorry. When I said "post", I meant the story this thread links to, not the comment thread. I believe you read the comments in their entirety. I think if you reread the post, you'd see that it rebuts your argument.
Re:How to safely generate a random number by luke-stanley on Friday February 28, 2014 @04:24PM (#7321599)
For encryption, the only way to be really secure is to have the same amount of randomness as there is data to encrypt, as a shared key. (A one time pad.) This isn't that hard to do so long as you can give it to the people that need it ahead of time, and should solve all kinds of theoretical problems. Mailing memory cards sealed in photoed glitter paint could work well too. It would be fun to 3D print a replica though.