HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
cryptosphere
sysrandom
C2016–2016
cryptosphere / sysrandom · Archived

sysrandom

Secure random number generation for Ruby using system RNG facilities

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

What to know before exploring

What it is

Secure random number generation for Ruby using system RNG facilities

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, 11:56:56 AM 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: 2016-09-07 04:51:19 UTC to 2016-09-07 14:43:17 UTC.

012016-09-07 04:00:00 UTC to 2016-09-07 05:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 7, 04:002016-09-07 05:00:00 UTC to 2016-09-07 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-09-07 06:00:00 UTC to 2016-09-07 07:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-09-07 07:00:00 UTC to 2016-09-07 08:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-09-07 08:00:00 UTC to 2016-09-07 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-09-07 09:00:00 UTC to 2016-09-07 10:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsSep 7, 09:002016-09-07 10:00:00 UTC to 2016-09-07 11:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-09-07 11:00:00 UTC to 2016-09-07 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-09-07 12:00:00 UTC to 2016-09-07 13:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-09-07 13:00:00 UTC to 2016-09-07 14:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-09-07 14:00:00 UTC to 2016-09-07 15:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 7, 14:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

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
Sep 7, 04:002016-09-07 04:00:00 UTC2016-09-07 05:00:00 UTC101
Sep 7, 05:002016-09-07 05:00:00 UTC2016-09-07 06:00:00 UTC000
Sep 7, 06:002016-09-07 06:00:00 UTC2016-09-07 07:00:00 UTC000
Sep 7, 07:002016-09-07 07:00:00 UTC2016-09-07 08:00:00 UTC000
Sep 7, 08:002016-09-07 08:00:00 UTC2016-09-07 09:00:00 UTC000
Sep 7, 09:002016-09-07 09:00:00 UTC2016-09-07 10:00:00 UTC000
Sep 7, 10:002016-09-07 10:00:00 UTC2016-09-07 11:00:00 UTC000
Sep 7, 11:002016-09-07 11:00:00 UTC2016-09-07 12:00:00 UTC000
Sep 7, 12:002016-09-07 12:00:00 UTC2016-09-07 13:00:00 UTC000
Sep 7, 13:002016-09-07 13:00:00 UTC2016-09-07 14:00:00 UTC000
Sep 7, 14:002016-09-07 14:00:00 UTC2016-09-07 15:00:00 UTC101

What Hacker News says

2 sources
We can't condone any solution that depends on userspace PRNGs like OpenSSL instead of the kernel's CSPRNG. There are probably worse examples of userspace PRNGs that attempt to be cryptographically secure than what OpenSSL provides, but we wrote this to encourage good habits. Reliance on OpenSSL's PRNG is definitely not a good habit to get into. The "General Requirements for Inclusion" section is our basic evaluation criteria. Cross-platform APIs that wrap the operating system's CSPRNG aren't that difficult. See https://github.com/cryptosphere/sysrandom/blob/master/ext/sy...
In How to Generate Secure Random Numbers in Various Programming Languages
The README of the gem that the article recommends ("sysrandom") provides a good explanation [1]. And here is the contentious Ruby issue wherein the Ruby core developers insist on cargo culting according to an outdated man page despite comprehensive refutation from a number of experienced security engineers [2]. That said, the arguments against OpenSSL seem to be largely theoretical at this point ("has been a source of vulnerabilities in Ruby ..."), so the misgivings about `SecureRandom` may be slightly exaggerated. [1] https://github.com/cryptosphere/sysrandom#why [2] https://bugs.ruby-lang.org/issues/9569
In How to Generate Secure Random Numbers in Various Programming Languages

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.