Debian Codegraph @

templates/man3/random.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "random"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "random, srandom, initstate, setstate - random number generator"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<long random(void);>\n"
85 "B<void srandom(unsigned int >I<seed>B<);>\n"
86 msgstr ""
87
88 #. type: Plain text
89 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
90 #: opensuse-tumbleweed
91 #, no-wrap
92 msgid ""
93 "B<char *initstate(>size_t n;\n"
94 "B< unsigned int >I<seed>B<, char >I<state>B<[>I<n>B<], size_t >I<n>B<);>\n"
95 "B<char *setstate(char *>I<state>B<);>\n"
96 msgstr ""
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 msgid ""
102 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
103 msgstr ""
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid "B<random>(), B<srandom>(), B<initstate>(), B<setstate>():"
109 msgstr ""
110
111 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
112 #. type: Plain text
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 #, no-wrap
116 msgid ""
117 " _XOPEN_SOURCE E<gt>= 500\n"
118 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
119 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
120 msgstr ""
121
122 #. type: SH
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid "DESCRIPTION"
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "The B<random>() function uses a nonlinear additive feedback random number "
134 "generator employing a default table of size 31 long integers to return "
135 "successive pseudo-random numbers in the range from 0 to 2\\[ha]31\\ -\\ 1. "
136 "The period of this random number generator is very large, approximately "
137 "I<16\\ *\\ ((2\\[ha]31)\\ -\\ 1)>."
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "The B<srandom>() function sets its argument as the seed for a new sequence "
145 "of pseudo-random integers to be returned by B<random>(). These sequences "
146 "are repeatable by calling B<srandom>() with the same seed value. If no "
147 "seed value is provided, the B<random>() function is automatically seeded "
148 "with a value of 1."
149 msgstr ""
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "The B<initstate>() function allows a state array I<state> to be initialized "
156 "for use by B<random>(). The size of the state array I<n> is used by "
157 "B<initstate>() to decide how sophisticated a random number generator it "
158 "should use\\[em]the larger the state array, the better the random numbers "
159 "will be. Current \"optimal\" values for the size of the state array I<n> "
160 "are 8, 32, 64, 128, and 256 bytes; other amounts will be rounded down to the "
161 "nearest known amount. Using less than 8 bytes results in an error. I<seed> "
162 "is the seed for the initialization, which specifies a starting point for the "
163 "random number sequence, and provides for restarting at the same point."
164 msgstr ""
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "The B<setstate>() function changes the state array used by the B<random>() "
171 "function. The state array I<state> is used for random number generation "
172 "until the next call to B<initstate>() or B<setstate>(). I<state> must "
173 "first have been initialized using B<initstate>() or be the result of a "
174 "previous call of B<setstate>()."
175 msgstr ""
176
177 #. type: SH
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "RETURN VALUE"
182 msgstr ""
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "The B<random>() function returns a value between 0 and I<(2\\[ha]31)\\ -\\ "
189 "1>. The B<srandom>() function returns no value."
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "The B<initstate>() function returns a pointer to the previous state array. "
197 "On failure, it returns NULL, and I<errno> is set to indicate the error."
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "On success, B<setstate>() returns a pointer to the previous state array. "
205 "On failure, it returns NULL, and I<errno> is set to indicate the error."
206 msgstr ""
207
208 #. type: SH
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "ERRORS"
213 msgstr ""
214
215 #. type: TP
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "B<EINVAL>"
220 msgstr ""
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid "The I<state> argument given to B<setstate>() was NULL."
226 msgstr ""
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid "A state array of less than 8 bytes was specified to B<initstate>()."
232 msgstr ""
233
234 #. type: SH
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid "ATTRIBUTES"
239 msgstr ""
240
241 #. type: Plain text
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 msgid ""
245 "For an explanation of the terms used in this section, see B<attributes>(7)."
246 msgstr ""
247
248 #. type: tbl table
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "Interface"
253 msgstr ""
254
255 #. type: tbl table
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, no-wrap
259 msgid "Attribute"
260 msgstr ""
261
262 #. type: tbl table
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "Value"
267 msgstr ""
268
269 #. type: tbl table
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid ".na\n"
274 msgstr ""
275
276 #. type: tbl table
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid ".nh\n"
281 msgstr ""
282
283 #. type: tbl table
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid ""
288 "B<random>(),\n"
289 "B<srandom>(),\n"
290 "B<initstate>(),\n"
291 "B<setstate>()"
292 msgstr ""
293
294 #. type: tbl table
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "Thread safety"
299 msgstr ""
300
301 #. type: tbl table
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 #, no-wrap
305 msgid "MT-Safe"
306 msgstr ""
307
308 #. type: SH
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "STANDARDS"
313 msgstr ""
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid "POSIX.1-2008."
319 msgstr ""
320
321 #. type: SH
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "HISTORY"
326 msgstr ""
327
328 #. type: Plain text
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 msgid "POSIX.1-2001, 4.3BSD."
332 msgstr ""
333
334 #. type: SH
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 #, no-wrap
338 msgid "NOTES"
339 msgstr ""
340
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 msgid ""
345 "Random-number generation is a complex topic. I<Numerical Recipes in C: The "
346 "Art of Scientific Computing> (William H.\\& Press, Brian P.\\& Flannery, "
347 "Saul A.\\& Teukolsky, William T.\\& Vetterling; New York: Cambridge "
348 "University Press, 2007, 3rd ed.) provides an excellent discussion of "
349 "practical random-number generation issues in Chapter 7 (Random Numbers)."
350 msgstr ""
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid ""
356 "For a more theoretical discussion which also covers many practical issues in "
357 "depth, see Chapter 3 (Random Numbers) in Donald E.\\& Knuth's I<The Art of "
358 "Computer Programming>, volume 2 (Seminumerical Algorithms), 2nd ed.; "
359 "Reading, Massachusetts: Addison-Wesley Publishing Company, 1981."
360 msgstr ""
361
362 #. type: SH
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "CAVEATS"
367 msgstr ""
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 msgid ""
373 "The B<random>() function should not be used in multithreaded programs where "
374 "reproducible behavior is required. Use B<random_r>(3) for that purpose."
375 msgstr ""
376
377 #. type: SH
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "BUGS"
382 msgstr ""
383
384 #. http://sourceware.org/bugzilla/show_bug.cgi?id=15380
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "According to POSIX, B<initstate>() should return NULL on error. In the "
390 "glibc implementation, I<errno> is (as specified) set on error, but the "
391 "function does not return NULL."
392 msgstr ""
393
394 #. type: SH
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "SEE ALSO"
399 msgstr ""
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid "B<getrandom>(2), B<drand48>(3), B<rand>(3), B<random_r>(3), B<srand>(3)"
405 msgstr ""
406
407 #. type: TH
408 #: debian-trixie
409 #, no-wrap
410 msgid "2024-05-02"
411 msgstr ""
412
413 #. type: TH
414 #: debian-trixie
415 #, no-wrap
416 msgid "Linux man-pages 6.9.1"
417 msgstr ""
418
419 #. type: Plain text
420 #: debian-trixie
421 msgid "Standard C library (I<libc>, I<-lc>)"
422 msgstr ""
423
424 #. type: Plain text
425 #: debian-trixie fedora-44 fedora-rawhide
426 #, no-wrap
427 msgid ""
428 "B<char *initstate(unsigned int >I<seed>B<, char >I<state>B<[.>I<n>B<], size_t >I<n>B<);>\n"
429 "B<char *setstate(char *>I<state>B<);>\n"
430 msgstr ""
431
432 #. type: TH
433 #: fedora-44 fedora-rawhide
434 #, no-wrap
435 msgid "2024-07-23"
436 msgstr ""
437
438 #. type: TH
439 #: fedora-44 fedora-rawhide
440 #, no-wrap
441 msgid "Linux man-pages 6.13"
442 msgstr ""
443
444 #. type: TH
445 #: mageia-cauldron
446 #, no-wrap
447 msgid "Linux man-pages 6.17"
448 msgstr ""
449
450 #. type: TH
451 #: opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "Linux man-pages (unreleased)"
454 msgstr ""