<feed xmlns='http://www.w3.org/2005/Atom'>
<title>skalibs/src/librandom/random_buf_early.c, branch v2.15.1.0</title>
<subtitle>The skarnet.org C programming library</subtitle>
<id>http://git.skarnet.org/cgit/skalibs/atom/src/librandom/random_buf_early.c?h=v2.15.1.0</id>
<link rel='self' href='http://git.skarnet.org/cgit/skalibs/atom/src/librandom/random_buf_early.c?h=v2.15.1.0'/>
<link rel='alternate' type='text/html' href='http://git.skarnet.org/cgit/skalibs/'/>
<updated>2026-01-01T13:47:45Z</updated>
<entry>
<title> Save/restore errno in all safe wrappers</title>
<updated>2026-01-01T13:47:45Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2026-01-01T13:47:45Z</published>
<link rel='alternate' type='text/html' href='http://git.skarnet.org/cgit/skalibs/commit/?id=e99182dab3093f1645f9e4ff216aa752d7443fb1'/>
<id>urn:sha1:e99182dab3093f1645f9e4ff216aa752d7443fb1</id>
<content type='text'>
</content>
</entry>
<entry>
<title> Don't use arc4random() for early random on Linux</title>
<updated>2022-07-23T20:21:38Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2022-07-23T20:21:38Z</published>
<link rel='alternate' type='text/html' href='http://git.skarnet.org/cgit/skalibs/commit/?id=2abc3b2c555d3dd6f9707b4e866d7984ad9048d6'/>
<id>urn:sha1:2abc3b2c555d3dd6f9707b4e866d7984ad9048d6</id>
<content type='text'>
Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</content>
</entry>
<entry>
<title> Add runtime fallback for GRND_INSECURE</title>
<updated>2022-06-23T08:46:40Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2022-06-23T08:46:40Z</published>
<link rel='alternate' type='text/html' href='http://git.skarnet.org/cgit/skalibs/commit/?id=664f0f3af7eb8aef89e6b1adee2d83b4c4f4cf9f'/>
<id>urn:sha1:664f0f3af7eb8aef89e6b1adee2d83b4c4f4cf9f</id>
<content type='text'>
The grndinsecure sysdep is only build-time tested and returns yes
if the kernel headers declare GRND_INSECURE. That is a problem
because the kernel headers are most likely provided by the toolchain
and do not reflect the exact capabilities of the run-time kernel.

If the run-time kernel doesn't support that option, getrandom()
fails. That made random_buf_early() busyloop.

To avoid that, we now fallback to random_devurandom() as an
implementation of random_buf_early() if getrandom() fails when
used with GRND_INSECURE. This adds a slight amount of overhead
to random_buf_early(), so it's probably better to just disable
the sysdep at build time if you're making binaries that will run
on older kernels.

Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</content>
</entry>
<entry>
<title> Export random_devurandom, fix APIs</title>
<updated>2022-06-08T17:33:25Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2022-06-08T17:33:25Z</published>
<link rel='alternate' type='text/html' href='http://git.skarnet.org/cgit/skalibs/commit/?id=8ed4778c0eb0515d2b45a5add017bb96106ee543'/>
<id>urn:sha1:8ed4778c0eb0515d2b45a5add017bb96106ee543</id>
<content type='text'>
Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</content>
</entry>
<entry>
<title> Prepare for 2.12.0.0. librandom revamp.</title>
<updated>2022-04-09T02:28:05Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2022-04-09T02:28:05Z</published>
<link rel='alternate' type='text/html' href='http://git.skarnet.org/cgit/skalibs/commit/?id=4e75b40d8a96c5d51490ddea43566fe8e6d4168c'/>
<id>urn:sha1:4e75b40d8a96c5d51490ddea43566fe8e6d4168c</id>
<content type='text'>
Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</content>
</entry>
</feed>
