TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A wall of lava lamps helps encrypt the internet

356 pointsby prandoover 7 years ago

34 comments

patcheudorover 7 years ago
My lesson from my personal experiments with Lavarand: you must have more than one lamp, not necessarily for more entropy, but for fail-over and uptime. At approximately ~30 hours, my vintage 70's lamp 'gives up' - the fluid temperature becomes pretty even between the bottom and the top. It's all essentially superheated as far as the wax is concerned and it simply stays in one place as a dome at the bottom, barely moving. This isn't good for creating random data. By using multiple lamps, it's possible to power cycle them. Ideally, every ten hours or so, remaining off for a couple hours.
评论 #16044561 未加载
评论 #16042309 未加载
评论 #16044589 未加载
oppositelockover 7 years ago
We did this exact thing at SGI 20 years ago. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lavarand" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lavarand</a><p>I wonder if Cloudflare was inspired by that.
评论 #16042164 未加载
评论 #16041842 未加载
评论 #16042077 未加载
评论 #16073268 未加载
samuelover 7 years ago
I might be prejudiced, but this looks like a big PR stunt&#x2F;done for the cool factor kind of thing. Aren&#x27;t there simpler&#x2F;saner alternatives for getting good randomness?
评论 #16041736 未加载
评论 #16041840 未加载
评论 #16041808 未加载
评论 #16043924 未加载
评论 #16041774 未加载
评论 #16041757 未加载
评论 #16041864 未加载
评论 #16043505 未加载
评论 #16041685 未加载
评论 #16041884 未加载
ceph_over 7 years ago
There&#x27;s a good Tom Scott video on this too. Like most of his stuff, it&#x27;s well worth the watch.<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;1cUUfMeOijg" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;1cUUfMeOijg</a>
schoenover 7 years ago
A lot of confusion in this discussion thread and other promotions of this idea stems from the intuition that you can &quot;run out&quot; of entropy in your random number pool if you don&#x27;t periodically replenish it with a physically unpredictable source. I have had this intuition too. Two things that feed it are the Linux random(4) man page and the behavior of GPG when generating a new private key.<p>tptacek tried to explain some of the problems in this intuition at <a href="https:&#x2F;&#x2F;sockpuppet.org&#x2F;blog&#x2F;2014&#x2F;02&#x2F;25&#x2F;safely-generate-random-numbers&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sockpuppet.org&#x2F;blog&#x2F;2014&#x2F;02&#x2F;25&#x2F;safely-generate-rando...</a>, which relates to why he&#x27;s so annoyed at some things people have said in this thread (and when discussing CSPRNG seeding in other places).<p>I like the idea of feeling physically unpredictable data into the CSPRNG, but for most purposes it&#x27;s a misconception that doing so on an ongoing basis is in any way required by the design or that heavy users of randomness like CloudFlare would &quot;run out of entropy&quot; or &quot;exhaust their entropy pool&quot; if they didn&#x27;t do so. The design of existing CSPRNGs would let CloudFlare use &#x2F;dev&#x2F;urandom for as long as it likes after securely seeding it just once, and there&#x27;s no known cryptanalytic attack to which this practice would be vulnerable.
评论 #16044581 未加载
jgrahamcover 7 years ago
The Cloudflare blog posts that go into this in detail:<p><a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;lavarand-in-production-the-nitty-gritty-technical-details&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;lavarand-in-production-the-nitty...</a><p><a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;randomness-101-lavarand-in-production&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;randomness-101-lavarand-in-produ...</a>
wkandekover 7 years ago
More details on how it is implemented here: <a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;lavarand-in-production-the-nitty-gritty-technical-details&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;lavarand-in-production-the-nitty...</a>
RKearneyover 7 years ago
Previous discussions:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15048655" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15048655</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15114275" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15114275</a>
Negative1over 7 years ago
I did something similar a few years back, except instead of Lava lamps, I used a Geiger counter module connected to an Arduino (scrap from a project I was working on to make something economical for civilian use after the Fukushima Daiichi nuclear disaster). Basically, the background radiation is used as the PRNG number (not just as the seed). I found out later that someone at Sparkfun already did this: <a href="https:&#x2F;&#x2F;www.sparkfun.com&#x2F;tutorials&#x2F;132" rel="nofollow">https:&#x2F;&#x2F;www.sparkfun.com&#x2F;tutorials&#x2F;132</a>
nickpsecurityover 7 years ago
This is pretty cool use of tech that goes back to SGI. It&#x27;s definitely not the practical solution to TRNG&#x27;s. There are analog solutions that use basic physics and EE techniques to generate noise fast, cheap, in tiny footprint if you want, and with a lot of potential diversity in supply chain. Here&#x27;s an example of an open one:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;waywardgeek&#x2F;infnoise&#x2F;blob&#x2F;master&#x2F;README.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;waywardgeek&#x2F;infnoise&#x2F;blob&#x2F;master&#x2F;README.m...</a>
chiphover 7 years ago
If Cloudflare ever open another office, they could use a wall full of Drinky Birds for randomness.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Drinking_bird" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Drinking_bird</a>
Kequcover 7 years ago
That&#x27;s approximately 100 lava lamps each at 100W = 10,000W = 10kW&#x2F;h * 20.4 cents = $2.04&#x2F;h * 24 = $48.96&#x2F;day $1,489.20&#x2F;month.<p>Ignoring the fact that is very little money in Silicon Valley. Lava lamps consume a large amount of electricity in order to generate the heat they need. There are cheaper better ways to generate randomness, this is purely for spectacle clearly.<p>It makes me nervous more than anything. If that&#x27;s the front they put up, inside is there a Rube Goldberg machine that triggers DDoS protection?
评论 #16042634 未加载
评论 #16042393 未加载
评论 #16043502 未加载
评论 #16045188 未加载
评论 #16043734 未加载
jlgaddisover 7 years ago
Cloudflare&#x27;s own blog posts about this:<p><a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;lavarand-in-production-the-nitty-gritty-technical-details&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;lavarand-in-production-the-nitty...</a><p><a href="https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;randomness-101-lavarand-in-production&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;randomness-101-lavarand-in-produ...</a>
xg15over 7 years ago
Assuming this is not a PR stunt: Wouldn&#x27;t different lighting conditions throughout the day lead to patterns in the randomness?
评论 #16041867 未加载
评论 #16041825 未加载
评论 #16041865 未加载
bmm6oover 7 years ago
One of my common daydreams is designing entropy-generating setups like this. Just last week I went on a brewery tour (Bell&#x27;s) and stared at the bottling plant for a while, admiring the chaos of the bottles bumping into each other as the path turns and narrows.
oliviervaover 7 years ago
A variation on Brownian Motion: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Brownian_motion" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Brownian_motion</a>
JoeDaDudeover 7 years ago
If you can&#x27;t afford that many lava lamps, NIST provides an alternative, free service:<p><a href="https:&#x2F;&#x2F;beacon.nist.gov&#x2F;home" rel="nofollow">https:&#x2F;&#x2F;beacon.nist.gov&#x2F;home</a>
评论 #16042248 未加载
natchover 7 years ago
How do they prevent the camera or its outgoing feed from being hacked or replaced by the NSA?<p>Edit: I see this is addressed partially by wkandek&#x27;s link elsewhere in this discussion.
lalosover 7 years ago
Reminded me about the dice-o-matic<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14806986" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14806986</a>
minimaxirover 7 years ago
It&#x27;s worth nothing that the lava lamps are visible street side through large glass windows, so it serves as an eye-catching artpiece for passerbys.
ameliusover 7 years ago
So how many bits does it produce per second per lamp?
solotronicsover 7 years ago
I bet they combine this with &#x2F;dev&#x2F;urandom or something to just add an element of chaos to something a computer generates
goblinsover 7 years ago
I like this. Seems like a simple analog solution to fairly difficult digital problem; true randomness that is.
tempestnover 7 years ago
Cool. Would have been nice if the article at least devoted 1-2 sentences to explaining PRNG seeds though.
angel_jover 7 years ago
I prefer cosmic background radiation.
评论 #16044343 未加载
saagarjhaover 7 years ago
&gt; Since computer codes are created by machines with relatively predictable patterns, it is entirely possible for hackers to guess their algorithms, posing a security risk.<p>That’s not what “computer codes” and “algorithms” mean.
xir78over 7 years ago
Do they have the distribution posted somewhere?
booleanbetrayalover 7 years ago
Hack the Planet = Hack a Camera?
评论 #16041643 未加载
diyseguyover 7 years ago
SGI did it first
maxsavinover 7 years ago
But is it really random? #conspiracy
sgt101over 7 years ago
The issue with this is the nature of devices (cameras) and device drivers - which both have non random characteristics.
jorgecover 7 years ago
Generating a random number by using microseconds as a seed is more than enough for practically every single case. It still hasn&#x27;t been cracked or predicted.<p>Some people say that, in theory, it could be cracked however, i tried and its impossible, modern computers are so complex and fast that it gives enough entropy.
评论 #16043674 未加载
评论 #16043523 未加载
anonuover 7 years ago
Seems like a waste of energy... I can imagine putting a weather station on the roof would be more useful (albeit less cool). Use multiple sensors for rainfall, UV, wind speed, wind direction, temperature, pressure and aggregate the signals from each... Surely the combination of localized weather readings would provide enough randomness.
评论 #16042236 未加载
cryptozover 7 years ago
It&#x27;s open to the public‽ Seems like a bad idea to let a potential spy in there to set up a camera and de-randomize this source of random info. Also, the headline on HN declares it a fact that the lava lamps are assisting in the encryption, but the article is careful to say &quot;maybe&quot;, &quot;might&quot;, etc.<p>This seems wildly insecure and much more likely to represent a weak link than to actually aid in randomness.
评论 #16041665 未加载
评论 #16041622 未加载
评论 #16041634 未加载
评论 #16041633 未加载