<feed xmlns='http://www.w3.org/2005/Atom'>
<title>skalibs/src/librandom, branch main</title>
<subtitle>The skarnet.org C programming library</subtitle>
<id>https://git.skarnet.org/cgit/skalibs/atom/src/librandom?h=main</id>
<link rel='self' href='https://git.skarnet.org/cgit/skalibs/atom/src/librandom?h=main'/>
<link rel='alternate' type='text/html' href='https://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='https://git.skarnet.org/cgit/skalibs/commit/?id=e99182dab3093f1645f9e4ff216aa752d7443fb1'/>
<id>urn:sha1:e99182dab3093f1645f9e4ff216aa752d7443fb1</id>
<content type='text'>
</content>
</entry>
<entry>
<title> Actually add autosurf_name; fix cspawn leak in error path</title>
<updated>2023-12-18T12:09:21Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2023-12-18T12:09:21Z</published>
<link rel='alternate' type='text/html' href='https://git.skarnet.org/cgit/skalibs/commit/?id=3c645356e5c92fc5faa77e81fab2f16b11cd6242'/>
<id>urn:sha1:3c645356e5c92fc5faa77e81fab2f16b11cd6242</id>
<content type='text'>
Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</content>
</entry>
<entry>
<title> Add autosurf_name</title>
<updated>2023-12-15T13:22:47Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2023-12-15T13:22:47Z</published>
<link rel='alternate' type='text/html' href='https://git.skarnet.org/cgit/skalibs/commit/?id=865a1f310dbfbf080d4a79cf1f99166d8d5dd71a'/>
<id>urn:sha1:865a1f310dbfbf080d4a79cf1f99166d8d5dd71a</id>
<content type='text'>
Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</content>
</entry>
<entry>
<title> Prepare for 2.13.0.0, revamp strerr</title>
<updated>2022-11-29T02:24:47Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2022-11-29T02:24:47Z</published>
<link rel='alternate' type='text/html' href='https://git.skarnet.org/cgit/skalibs/commit/?id=06011c29aef19d8ed90ebf48095e1ff2a846ba23'/>
<id>urn:sha1:06011c29aef19d8ed90ebf48095e1ff2a846ba23</id>
<content type='text'>
Signed-off-by: Laurent Bercot &lt;ska@appnovation.com&gt;
</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='https://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> Fix allread errno management</title>
<updated>2022-07-18T12:39:01Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2022-07-18T12:39:01Z</published>
<link rel='alternate' type='text/html' href='https://git.skarnet.org/cgit/skalibs/commit/?id=69fb8c62a31e767be1464a7ccfe2a5bac331c4cc'/>
<id>urn:sha1:69fb8c62a31e767be1464a7ccfe2a5bac331c4cc</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='https://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='https://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='https://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>
<entry>
<title> Don't write to /dev/urandom. (It's useless or even harmful.)</title>
<updated>2022-03-27T06:46:04Z</updated>
<author>
<name>Laurent Bercot</name>
<email>ska-skaware@skarnet.org</email>
</author>
<published>2022-03-27T06:46:04Z</published>
<link rel='alternate' type='text/html' href='https://git.skarnet.org/cgit/skalibs/commit/?id=73439ad0ff5363ad629086fe04ac44f5569a185e'/>
<id>urn:sha1:73439ad0ff5363ad629086fe04ac44f5569a185e</id>
<content type='text'>
</content>
</entry>
</feed>
