frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Random Numbers from Hard Problems: LWE Based Toy RNG

https://blog.s20n.dev/posts/lwe-rng/
19•s20n•1w ago

Comments

elchananHaas•9h ago
TLDR - this RNG is completely and totally broken.

First, I don't think the error term is contributing much to the solution. It almost never affects the high bit. In addition, it isn't fed back into updating the secret vectors, so I think an analysis can pretend it doesn't exist.

The nonlinear step where each value is squared looks questionable to me. You will only produce quadratic residues (https://en.wikipedia.org/wiki/Quadratic_residue) when you square the numbers. This roughly halves the number of possibilities.

So what this really boils down to is this:

You have a matrix G and a vector s and a prime p. You repeatedly compute s' = Gs (Hadamard) Gs mod p. Each time you run this step you are projecting into a space with dimensionality (p/2)^N from a space p^N. My guess is that most operations will get trapped into short cycles.

Using you example values, after 10 iterations it gets to [9, 16, 13, 8]. This then repeats with a cycle length of 20. Given 4 values with p = 17 you could get up to 83520 values before repeating.

In some random tests, 6 values with p=97 enters a cycle at iteration 3802 even though there were 832,972,004,929 values.

6 values with p=271 enters a cycle at iteration 166,684 even though there were 396,109,944,105,121 values.

RainyDayTmrw•4h ago
The nice thing about Blum-Blum-Shub or Blum-Micali is that they come with a proof of security. Even then, they tend to be impractical, due to performance and side channels.

This one is missing the most important part, the proof. Indeed, a sibling comment notes that empirical results look pretty flawed.

The Swift SDK for Android

https://www.swift.org/blog/nightly-swift-sdk-for-android/
424•gok•9h ago•163 comments

Unlocking Free WiFi on British Airways

https://www.saxrag.com/tech/reversing/2025/06/01/BAWiFi.html
118•vinhnx•14h ago•14 comments

People with blindness can read again after retinal implant and special glasses

https://www.nbcnews.com/health/health-news/tiny-eye-implant-special-glasses-legally-blind-patient...
48•8bitsrule•3d ago•10 comments

Valetudo: Cloud replacement for vacuum robots enabling local-only operation

https://valetudo.cloud/
198•freetonik•4d ago•55 comments

What Is Intelligence? (2024)

https://whatisintelligence.antikythera.org/
47•sva_•4h ago•30 comments

First shape found that can't pass through itself

https://www.quantamagazine.org/first-shape-found-that-cant-pass-through-itself-20251024/
297•fleahunter•15h ago•66 comments

Context engineering is sleeping on the humble hyperlink

https://mbleigh.dev/posts/context-engineering-with-links/
47•mbleigh•1d ago•12 comments

Advice for New Principal Tech ICs (I.e., Notes to Myself)

https://eugeneyan.com/writing/principal/
23•7d7n•3h ago•6 comments

I invited strangers to message me through a receipt printer

https://aschmelyun.com/blog/i-invited-strangers-to-message-me-through-a-receipt-printer/
193•chrisdemarco•5d ago•73 comments

Harnessing America's Heat Pump Moment

https://www.heatpumped.org/p/harnessing-america-s-heat-pump-moment
112•ssuds•9h ago•238 comments

Code Like a Surgeon

https://www.geoffreylitt.com/2025/10/24/code-like-a-surgeon
125•simonw•14h ago•73 comments

Deepagent: A powerful desktop AI assistant

https://deepagent.abacus.ai
15•o999•3h ago•1 comments

How to make a Smith chart

https://www.johndcook.com/blog/2025/10/23/smith-chart/
114•tzury•12h ago•21 comments

Public Montessori programs strengthen learning outcomes at lower costs: study

https://phys.org/news/2025-10-national-montessori-early-outcomes-sharply.html
271•strict9•2d ago•144 comments

Twake Drive – An open-source alternative to Google Drive

https://github.com/linagora/twake-drive
314•javatuts•19h ago•179 comments

Study: MRI contrast agent causes harmful metal buildup in some patients

https://www.ormanager.com/briefs/study-mri-contrast-agent-causes-harmful-metal-buildup-in-some-pa...
118•nikolay•8h ago•88 comments

Modern Perfect Hashing

https://blog.sesse.net/blog/tech/2025-10-23-21-23_modern_perfect_hashing.html
84•bariumbitmap•1d ago•10 comments

The Geometry of Mathematical Methods

https://books.physics.oregonstate.edu/GMM/book.html
4•kalind•4d ago•0 comments

Why formalize mathematics – more than catching errors

https://rkirov.github.io/posts/why_lean/
169•birdculture•5d ago•62 comments

Mesh2Motion – Open-source web application to animate 3D models

https://mesh2motion.org/
188•Splizard•18h ago•34 comments

Conductor (YC S24) Is Hiring a Founding Engineer in San Francisco

https://www.ycombinator.com/companies/conductor/jobs/MYjJzBV-founding-engineer
1•Charlieholtz•8h ago

The Great Butterfly Heist

https://www.theguardian.com/global/2025/oct/04/great-butterfly-heist-how-collector-stole-thousand...
12•lermontov•2d ago•1 comments

Why can't transformers learn multiplication?

https://arxiv.org/abs/2510.00184
128•PaulHoule•3d ago•70 comments

The fix wasn't easy, or C precedence bites

https://boston.conman.org/2025/10/20.1
5•ingve•2d ago•1 comments

Debian Technical Committee overrides systemd change

https://lwn.net/Articles/1041316/
171•birdculture•19h ago•175 comments

Typst 0.14

https://typst.app/blog/2025/typst-0.14/
557•optionalsquid•16h ago•148 comments

Underdetermined Weaving with Machines (2021) [video]

https://www.youtube.com/watch?v=on_sK8KoObo
9•akkartik•2h ago•3 comments

New OSM file format: 30% smaller than PBF, 5x faster to import

https://community.openstreetmap.org/t/new-osm-file-format-30-smaller-than-pbf-5x-faster-to-import...
92•raybb•7h ago•9 comments

Interstellar Mission to a Black Hole

https://www.centauri-dreams.org/2025/10/23/interstellar-mission-to-a-black-hole/
131•JPLeRouzic•20h ago•97 comments

TextEdit and the relief of simple software

https://www.newyorker.com/culture/infinite-scroll/textedit-and-the-relief-of-simple-software
85•gaws•8h ago•86 comments