Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #358: struck by the Good Times virus


comp / comp.unix.bsd.openbsd.misc / Feeding entropy to /dev/random

SubjectAuthor
* Feeding entropy to /dev/randomSAB
`- Re: Feeding entropy to /dev/randomChristian Weisgerber

1
Subject: Feeding entropy to /dev/random
From: SAB
Newsgroups: comp.unix.bsd.openbsd.misc
Organization: ATMAN - ATM S.A.
Date: Tue, 16 Apr 2019 02:49 UTC
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.pionier.net.pl!polsl.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: sab@no.ne (SAB)
Newsgroups: comp.unix.bsd.openbsd.misc
Subject: Feeding entropy to /dev/random
Date: Tue, 16 Apr 2019 02:49:12 +0000 (UTC)
Organization: ATMAN - ATM S.A.
Lines: 17
Message-ID: <q93fqj$mto$1@node1.news.atman.pl>
NNTP-Posting-Host: 185.220.101.44
X-Trace: node1.news.atman.pl 1555382952 23480 185.220.101.44 (16 Apr 2019 02:49:12 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Tue, 16 Apr 2019 02:49:12 +0000 (UTC)
View all headers

Hello.

I was wondering if there is an easy way to feed entropy to /dev/random or
arc4random() on OpenBSD. (My understanding is that they both use same
entropy spool.)

I did some research and found this nice NetBSD man page:

<https://man.openbsd.org/NetBSD-7.0.1/rnd.4>

It mentions rndctl command, which, unfortunately, does not exist in
OpenBSD.

The RNDADDDATA ioctl is also doing exactly what I was thinking of but
only once per boot (why?)

Is there anything similar in OpenBSD?

Subject: Re: Feeding entropy to /dev/random
From: Christian Weisgerber
Newsgroups: comp.unix.bsd.openbsd.misc
Date: Tue, 16 Apr 2019 11:04 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.szaf.org!inka.de!mips.inka.de!.POSTED.localhost!not-for-mail
From: naddy@mips.inka.de (Christian Weisgerber)
Newsgroups: comp.unix.bsd.openbsd.misc
Subject: Re: Feeding entropy to /dev/random
Date: Tue, 16 Apr 2019 11:04:16 -0000 (UTC)
Message-ID: <slrnqbbdlg.2o1i.naddy@lorvorc.mips.inka.de>
References: <q93fqj$mto$1@node1.news.atman.pl>
Injection-Date: Tue, 16 Apr 2019 11:04:16 -0000 (UTC)
Injection-Info: lorvorc.mips.inka.de; posting-host="localhost:::1";
logging-data="90163"; mail-complaints-to="usenet@mips.inka.de"
User-Agent: slrn/1.0.3 (FreeBSD)
View all headers

On 2019-04-16, SAB <sab@no.ne> wrote:

> I was wondering if there is an easy way to feed entropy to /dev/random or

Yes, you can write to /dev/random. /etc/rc and the installer do
so.

--
Christian "naddy" Weisgerber naddy@mips.inka.de

1

rocksolid light 0.9.8
clearnet tor