HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
samboy
LUAlibs
C2026–2026
samboy / LUAlibs

LUAlibs

Libraries which add Lunacy support to stock Lua

2Distinct people
2Mentions
0Explicit recommenders
2GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Libraries which add Lunacy support to stock Lua

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2026-05-13 07:14:19 UTC to 2026-05-13 07:40:27 UTC.

0122026-05-13 07:00:00 UTC to 2026-05-13 08:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsMay 13, 07:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC. One observed period does not establish a trend.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
May 13, 07:002026-05-13 07:00:00 UTC2026-05-13 08:00:00 UTC202

What Hacker News says

2 sources
Apologies for being confrontational; accusations of there being security holes are serious accusations in my book, and need to be backed up with solid facts. Yes, that’s how seriously I take security with the software I make available on the Internet. That number is a 32-bit number in the C code, but it’s converted in to a 16-bit number. I used “int” to have it interface with other Lua code, but safely assume “int” can fit 16 bits, and yes I do convert the number to a 16-bit one before passing it off to other Lua code: https://github.com/samboy/LUAlibs/blob/master/rg32.c#L77 Here, I assume lua_number can pass 32 bits: https://github.com/samboy/LUAlibs/blob/master/rg32.c#L45 https://github.com/samboy/MaraDNS/blob/master/coLunacyDNS/lu... https://github.com/samboy/lunacy/blob/master/src/lmathlib.c#... But it works without issue: rg32.ran
Read the rest
domseed("shakna3") print(string.format("%x",rg32.rand32())) One sees “b0e6725c”, i.e. a 32-bit unsigned number Likewise: rg32.randomseed("shakna3") print(string.format("%x %x",rg32.rand16(),rg32.rand16())) Gives us “b0e6 725c”. Vendoring Lua 5.1 was forced; since I wanted to use Lua 5.1 (for reasons described above, e.g. LuaJIT compatibility), I had to use code which hasn’t been updated upstream since 2012.
In CERT is releasing six CVEs for serious security vulnerabilities in dnsmasq
> What makes you think I was using Lua in 2014? Seriously, do you even know how to use “git log”? ... It was fixed, upstream, in 2014. Thanks for not checking the number at the start of the CVE, before launching straight into attack mode. https://www.lua.org/bugs.html#5.2.2-1 Which is the point. In 2020, when you added Lua, you added a vulnerability that had officially been fixed for six years. Because you vendored, and did not depend on any system package. > uint32_t is always 32-bit: Yah. Which is why I said 'int'. As in the assumptions you made here: https://github.com/samboy/LUAlibs/blob/master/rg32.c#L59
In CERT is releasing six CVEs for serious security vulnerabilities in dnsmasq

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.