<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/dueno">Daiki Ueno</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1188">#1188</a>:
</p>
<div></div>
<p dir="auto">On Unix, if <code>getrandom</code> syscall is not available, <code>/dev/urandom</code> is used as a random seed. For some reason, we keep the file descriptor open during the process lifetime and that caused <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760476" rel="nofollow noreferrer noopener" target="_blank">issues</a> in the past.</p>
<p dir="auto">In the first place, however, <code>read</code> from that device is rare: only for the initial seeding and reseeding after the limit of DRBG. We probably should make the device access one-shot (i.e., do <code>open</code>/<code>close</code> every time), like other libraries do.</p>
<p dir="auto">See <a href="https://gitlab.com/gnutls/gnutls/-/merge_requests/1383#note_519494090" data-original="https://gitlab.com/gnutls/gnutls/-/merge_requests/1383#note_519494090" data-link="false" data-link-reference="true" data-project="179611" data-merge-request="86731749" data-project-path="gnutls/gnutls" data-iid="1383" data-mr-title="tests: enable all tests to run under valgrind" data-reference-type="merge_request" data-container="body" data-placement="top" title="" class="gfm gfm-merge_request">!1383 (comment 519494090)</a> for the discussion.</p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1188">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/5bf5d9eadc21e3380e49ac472b944ebd/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1188"}}</script>


</p>
</div>
</body>
</html>