bobg / bobg/encid

Consider using an internal random-number generator

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
7
Forks
0
PR merge metrics
No merged PRs in 30d

Description

In addition to the improvements suggested in #5, user [u/skeeto](https://reddit.com/u/skeeto) on Reddit also suggests using an internal PRNG. In skeeto's words:

> [`crypto/rand`] is slow (involves at least one syscall for each read), and can fail. It's fine for seeding a PRNG, but a poor option otherwise.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading issue #5 and reviewing the crypto/rand concern described here. Determine whether an internal PRNG can avoid per-read syscalls and failures without weakening the randomness required by encid; done means the approach and its security implications are settled, with relevant behavior verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
security
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.