# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-06-05 06:25+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "getrandom" msgstr "" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "getrandom - obtain a series of random bytes" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Esys/random.hE>\n" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "Bsize_t size;\n" "B< void >IB<[>IB<], size_t >IB<, unsigned int >IB<);>\n" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The B() system call fills the buffer pointed to by I with " "up to I random bytes. These bytes can be used to seed user-space " "random number generators or for cryptographic purposes." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "By default, B() draws entropy from the I source (i.e., " "the same source as the I device). This behavior can be " "changed via the I argument." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the I source has been initialized, reads of up to 256 bytes will " "always return as many bytes as requested and will not be interrupted by " "signals. No such guarantees apply for larger buffer sizes. For example, if " "the call is interrupted by a signal handler, it may return a partially " "filled buffer, or fail with the error B." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the I source has not yet been initialized, then B() " "will block, unless B is specified in I." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument is a bit mask that can contain zero or more of the " "following values ORed together:" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If this bit is set, then random bytes are drawn from the I source " "(i.e., the same source as the I device) instead of the " "I source. The I source is limited based on the entropy " "that can be obtained from environmental noise. If the number of available " "bytes in the I source is less than requested in I, the call " "returns just the available random bytes. If no random bytes are available, " "the behavior depends on the presence of B in the I " "argument." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "By default, when reading from the I source, B() blocks " "if no random bytes are available, and when reading from the I " "source, it blocks if the entropy pool has not yet been initialized. If the " "B flag is set, then B() does not block in these " "cases, but instead immediately returns -1 with I set to B." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "On success, B() returns the number of bytes that were copied to " "the buffer I. This may be less than the number of bytes requested via " "I if either B was specified in I and insufficient " "entropy was present in the I source or the system call was " "interrupted by a signal." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "On error, -1 is returned, and I is set to indicate the error." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The requested entropy was not available, and B() would have " "blocked if the B flag was not set." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The address referred to by I is outside the accessible address space." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The call was interrupted by a signal handler; see the description of how " "interrupted B(2) calls on \"slow\" devices are handled with and " "without the B flag in the B(7) man page." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "An invalid flag was specified in I." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The glibc wrapper function for B() determined that the " "underlying kernel does not implement this system call." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux 3.17, glibc 2.25." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For an overview and comparison of the various interfaces that can be used to " "obtain randomness, see B(7)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Unlike I and I, B() does not involve " "the use of pathnames or file descriptors. Thus, B() can be " "useful in cases where B(2) makes I pathnames invisible, and " "where an application (e.g., a daemon during start-up) closes a file " "descriptor for one of these files that was opened by a library." msgstr "" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Maximum number of bytes returned" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "As of Linux 3.19 the following limits apply:" msgstr "" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When reading from the I source, a maximum of 32Mi-1 bytes is " "returned by a single call to B() on systems where I has a " "size of 32 bits." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When reading from the I source, a maximum of 512 bytes is returned." msgstr "" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Interruption by a signal handler" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When reading from the I source (B is not set), " "B() will block until the entropy pool has been initialized " "(unless the B flag was specified). If a request is made to " "read a large number of bytes (more than 256), B() will block " "until those bytes have been generated and transferred from kernel memory to " "I. When reading from the I source (B is set), " "B() will block until some random bytes become available (unless " "the B flag was specified)." msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The behavior when a call to B() that is blocked while reading " "from the I source is interrupted by a signal handler depends on the " "initialization state of the entropy buffer and on the request size, " "I. If the entropy is not yet initialized, then the call fails with " "the B error. If the entropy pool has been initialized and the " "request size is large (I\\ E\\ 256), the call either succeeds, " "returning a partially filled buffer, or fails with the error B. If " "the entropy pool has been initialized and the request size is small " "(I\\ E=\\ 256), then B() will not fail with B. " "Instead, it will return all of the bytes that have been requested." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When reading from the I source, blocking requests of any size can be " "interrupted by a signal handler (the call fails with the error B)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Using B() to read small buffers (E=\\ 256 bytes) from the " "I source is the preferred mode of usage." msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The special treatment of small values of I was designed for " "compatibility with OpenBSD's B(3), which is nowadays supported " "by glibc." msgstr "" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The user of B() I always check the return value, to " "determine whether either an error occurred or fewer bytes than requested " "were returned. In the case where B is not specified and " "I is less than or equal to 256, a return of fewer bytes than requested " "should never happen, but the careful programmer will check for this anyway!" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "" #. FIXME patch proposed https://lkml.org/lkml/2014/11/29/16 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "As of Linux 3.19, the following bug exists:" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Depending on CPU load, B() does not react to interrupts before " "reading all bytes requested." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(3), B(4), B(4), B(7), B(7)" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "2024-05-02" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "BIB<[.>IB<], size_t >IB<, unsigned int >IB<);>\n" msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The B() system call fills the buffer pointed to by I with " "up to I random bytes. These bytes can be used to seed user-space " "random number generators or for cryptographic purposes." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "If this bit is set, then random bytes are drawn from the I source " "(i.e., the same source as the I device) instead of the " "I source. The I source is limited based on the entropy " "that can be obtained from environmental noise. If the number of available " "bytes in the I source is less than requested in I, the call " "returns just the available random bytes. If no random bytes are available, " "the behavior depends on the presence of B in the I " "argument." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "On success, B() returns the number of bytes that were copied to " "the buffer I. This may be less than the number of bytes requested via " "I if either B was specified in I and " "insufficient entropy was present in the I source or the system call " "was interrupted by a signal." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The behavior when a call to B() that is blocked while reading " "from the I source is interrupted by a signal handler depends on the " "initialization state of the entropy buffer and on the request size, " "I. If the entropy is not yet initialized, then the call fails with " "the B error. If the entropy pool has been initialized and the " "request size is large (I\\ E\\ 256), the call either succeeds, " "returning a partially filled buffer, or fails with the error B. If " "the entropy pool has been initialized and the request size is small " "(I\\ E=\\ 256), then B() will not fail with " "B. Instead, it will return all of the bytes that have been requested." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The special treatment of small values of I was designed for " "compatibility with OpenBSD's B(3), which is nowadays supported " "by glibc." msgstr "" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The user of B() I always check the return value, to " "determine whether either an error occurred or fewer bytes than requested " "were returned. In the case where B is not specified and " "I is less than or equal to 256, a return of fewer bytes than " "requested should never happen, but the careful programmer will check for " "this anyway!" msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr ""