| 1 |
# German translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Patrick Rother <[email protected]>, 1996. |
| 5 |
# Chris Leick <[email protected]>, 2010-2011. |
| 6 |
# Mario Blättermann <[email protected]>, 2020, 2022, 2023. |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: manpages-l10n 4.30.2\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:39+0200\n" |
| 11 |
"PO-Revision-Date: 2026-06-05 14:51+0200\n" |
| 12 |
"Last-Translator: Mario Blättermann <[email protected]>\n" |
| 13 |
"Language-Team: German <[email protected]>\n" |
| 14 |
"Language: de\n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
"X-Generator: Lokalize 23.04.3\n" |
| 19 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| 20 |
|
| 21 |
#. type: TH |
| 22 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 23 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 24 |
#, no-wrap |
| 25 |
msgid "rand" |
| 26 |
msgstr "rand" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 30 |
#: opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "2026-02-08" |
| 33 |
msgstr "8. Februar 2026" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable |
| 37 |
#, no-wrap |
| 38 |
msgid "Linux man-pages 6.18" |
| 39 |
msgstr "Linux man-pages 6.18" |
| 40 |
|
| 41 |
#. type: SH |
| 42 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 43 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 44 |
#, no-wrap |
| 45 |
msgid "NAME" |
| 46 |
msgstr "BEZEICHNUNG" |
| 47 |
|
| 48 |
#. type: Plain text |
| 49 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 50 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 51 |
msgid "rand, rand_r, srand - pseudo-random number generator" |
| 52 |
msgstr "rand, rand_r, srand - Pseudo-Zufallszahlengenerator" |
| 53 |
|
| 54 |
#. type: SH |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
#, no-wrap |
| 58 |
msgid "LIBRARY" |
| 59 |
msgstr "BIBLIOTHEK" |
| 60 |
|
| 61 |
#. type: Plain text |
| 62 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 63 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 65 |
msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)" |
| 66 |
|
| 67 |
#. type: SH |
| 68 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 69 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
#, no-wrap |
| 71 |
msgid "SYNOPSIS" |
| 72 |
msgstr "ÜBERSICHT" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 76 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
#, no-wrap |
| 78 |
msgid "B<#include E<lt>stdlib.hE<gt>>\n" |
| 79 |
msgstr "B<#include E<lt>stdlib.hE<gt>>\n" |
| 80 |
|
| 81 |
#. type: Plain text |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "" |
| 86 |
"B<int rand(void);>\n" |
| 87 |
"B<void srand(unsigned int >I<seed>B<);>\n" |
| 88 |
msgstr "" |
| 89 |
"B<int rand(void);>\n" |
| 90 |
"B<void srand(unsigned int >I<zstart>B<);>\n" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "B<[[deprecated]] int rand_r(unsigned int *>I<seedp>B<);>\n" |
| 97 |
msgstr "B<[[veraltet]] int rand_r(unsigned int *>I<zstartz>B<);>\n" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
msgid "" |
| 103 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 104 |
msgstr "" |
| 105 |
"Mit Glibc erforderliche Feature-Test-Makros (siehe " |
| 106 |
"B<feature_test_macros>(7)):" |
| 107 |
|
| 108 |
#. type: Plain text |
| 109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 111 |
msgid "B<rand_r>():" |
| 112 |
msgstr "B<rand_r>():" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
#, no-wrap |
| 118 |
msgid "" |
| 119 |
" Since glibc 2.24:\n" |
| 120 |
" _POSIX_C_SOURCE E<gt>= 199506L\n" |
| 121 |
" glibc 2.23 and earlier\n" |
| 122 |
" _POSIX_C_SOURCE\n" |
| 123 |
msgstr "" |
| 124 |
" Seit Glibc 2.24:\n" |
| 125 |
" _POSIX_C_SOURCE E<gt>= 199506L\n" |
| 126 |
" Glibc 2.23 und älter\n" |
| 127 |
" _POSIX_C_SOURCE\n" |
| 128 |
|
| 129 |
#. type: SH |
| 130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 131 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 132 |
#, no-wrap |
| 133 |
msgid "DESCRIPTION" |
| 134 |
msgstr "BESCHREIBUNG" |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 138 |
#: opensuse-tumbleweed |
| 139 |
msgid "" |
| 140 |
"The B<rand>() function returns a pseudo-random integer in the range 0 to " |
| 141 |
"B<RAND_MAX> inclusive (i.e., the mathematical range [B<0>,\\ B<RAND_MAX>])." |
| 142 |
msgstr "" |
| 143 |
"Die Funktion B<rand>() gibt eine pseudo-zufällige Ganzzahl im Bereich 0 bis " |
| 144 |
"B<RAND_MAX> inklusive zurück (d.h. dem mathematischen Bereich [B<0>,\\ " |
| 145 |
"B<RAND_MAX>])." |
| 146 |
|
| 147 |
#. type: Plain text |
| 148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 149 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 150 |
msgid "" |
| 151 |
"The B<srand>() function sets its argument as the seed for a new sequence of " |
| 152 |
"pseudo-random integers to be returned by B<rand>(). These sequences are " |
| 153 |
"repeatable by calling B<srand>() with the same seed value." |
| 154 |
msgstr "" |
| 155 |
"Die Funktion B<srand>() setzt ihr Argument als Seed (Zufallswert zum " |
| 156 |
"Erzeugen kryptografischer Schlüssel) für eine neue Reihe von pseudo-" |
| 157 |
"zufälligen Ganzzahlen ein, die von B<rand>() zurückgegeben werden. Diese " |
| 158 |
"Sequenzen sind durch Aufruf von B<srand>() mit dem selben Zufallsstartwert " |
| 159 |
"wiederholbar." |
| 160 |
|
| 161 |
#. type: Plain text |
| 162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 163 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 164 |
msgid "" |
| 165 |
"If no seed value is provided, the B<rand>() function is automatically " |
| 166 |
"seeded with a value of 1." |
| 167 |
msgstr "" |
| 168 |
"Wenn kein Zufallsstartwert angegeben wird, wird automatisch 1 als " |
| 169 |
"Zufallsstartwert für B<rand>() genommen." |
| 170 |
|
| 171 |
# HK reentrant = ablaufinvariant??? |
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
msgid "" |
| 176 |
"The function B<rand>() is not reentrant, since it uses hidden state that is " |
| 177 |
"modified on each call. This might just be the seed value to be used by the " |
| 178 |
"next call, or it might be something more elaborate. In order to get " |
| 179 |
"reproducible behavior in a threaded application, this state must be made " |
| 180 |
"explicit; this can be done using the reentrant function B<rand_r>()." |
| 181 |
msgstr "" |
| 182 |
"Die Funktion B<rand>() ist nicht ablaufinvariant, da sie versteckten Status " |
| 183 |
"benutzt, der bei jedem Aufruf geändert wird. Dies ist möglicherweise nur der " |
| 184 |
"Zufallsstartwert, der beim nächsten Aufruf verwendet werden soll, oder etwas " |
| 185 |
"komplizierteres. Um ein reproduzierbares Verhalten für eine Anwendung mit " |
| 186 |
"Threads zu erhalten, muss dieser Status explizit gesetzt werden; dies kann " |
| 187 |
"mit der ablaufinvarianten Funktion B<rand_r>() erledigt werden." |
| 188 |
|
| 189 |
#. type: Plain text |
| 190 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 191 |
#: opensuse-tumbleweed |
| 192 |
msgid "" |
| 193 |
"Like B<rand>(), B<rand_r>() returns a pseudo-random integer in the range " |
| 194 |
"[B<0>,\\ B<RAND_MAX>]. The I<seedp> argument is a pointer to an I<unsigned " |
| 195 |
"int> that is used to store state between calls. If B<rand_r>() is called " |
| 196 |
"with the same initial value for the integer pointed to by I<seedp>, and that " |
| 197 |
"value is not modified between calls, then the same pseudo-random sequence " |
| 198 |
"will result." |
| 199 |
msgstr "" |
| 200 |
"Wie B<rand>() gibt B<rand_r>() eine pseudo-zufällige Ganzzahl im Bereich " |
| 201 |
"[B<0>,\\ B<RAND_MAX>] zurück. Das Argument I<zstartz> ist ein Zeiger auf " |
| 202 |
"einen I<unsigned int>, der benutzt wird, um den Status zwischen Aufrufen zu " |
| 203 |
"speichern. Falls B<rand_r>() mit dem gleichen Anfangswert für die Ganzzahl " |
| 204 |
"aufgerufen wird, auf die I<zstartz> zeigt, und der Wert zwischen den " |
| 205 |
"Aufrufen nicht verändert wurde, dann wird das Ergebnis die gleiche pseudo-" |
| 206 |
"zufällige Sequenz sein." |
| 207 |
|
| 208 |
#. type: Plain text |
| 209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 210 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 211 |
msgid "" |
| 212 |
"The value pointed to by the I<seedp> argument of B<rand_r>() provides only " |
| 213 |
"a very small amount of state, so this function will be a weak pseudo-random " |
| 214 |
"generator. Try B<drand48_r>(3) instead." |
| 215 |
msgstr "" |
| 216 |
"Der Wert, auf den das Argument I<zstartz> von B<rand_r>() zeigt, stellt nur " |
| 217 |
"einen kleinen Anteil des Status bereit, daher wird diese Funktion nur ein " |
| 218 |
"schwacher Pseudo-Zufallsgenerator sein. Probieren Sie stattdessen " |
| 219 |
"B<drand48_r>(3)." |
| 220 |
|
| 221 |
#. type: SH |
| 222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 223 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 224 |
#, no-wrap |
| 225 |
msgid "RETURN VALUE" |
| 226 |
msgstr "RÜCKGABEWERT" |
| 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 "" |
| 232 |
"The B<rand>() and B<rand_r>() functions return a value between 0 and " |
| 233 |
"B<RAND_MAX> (inclusive). The B<srand>() function returns no value." |
| 234 |
msgstr "" |
| 235 |
"Die Funktionen B<rand>() und B<rand_r>() geben einen Wert zwischen 0 und " |
| 236 |
"B<RAND_MAX> (inklusive) zurück. Die Funktion B<srand>() gibt keinen Wert " |
| 237 |
"zurück." |
| 238 |
|
| 239 |
#. type: SH |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
#, no-wrap |
| 243 |
msgid "ATTRIBUTES" |
| 244 |
msgstr "ATTRIBUTE" |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
msgid "" |
| 250 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 251 |
msgstr "" |
| 252 |
"Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt " |
| 253 |
"verwandten Ausdrücke." |
| 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 "Interface" |
| 260 |
msgstr "Schnittstelle" |
| 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 "Attribute" |
| 267 |
msgstr "Attribut" |
| 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 "Value" |
| 274 |
msgstr "Wert" |
| 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 ".na\n" |
| 281 |
msgstr ".na\n" |
| 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 ".nh\n" |
| 288 |
msgstr ".nh\n" |
| 289 |
|
| 290 |
#. type: tbl table |
| 291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 292 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 293 |
#, no-wrap |
| 294 |
msgid "" |
| 295 |
"B<rand>(),\n" |
| 296 |
"B<rand_r>(),\n" |
| 297 |
"B<srand>()" |
| 298 |
msgstr "" |
| 299 |
"B<rand>(),\n" |
| 300 |
"B<rand_r>(),\n" |
| 301 |
"B<srand>()" |
| 302 |
|
| 303 |
#. type: tbl table |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
#, no-wrap |
| 307 |
msgid "Thread safety" |
| 308 |
msgstr "Multithread-Fähigkeit" |
| 309 |
|
| 310 |
#. type: tbl table |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
#, no-wrap |
| 314 |
msgid "MT-Safe" |
| 315 |
msgstr "MT-Sicher" |
| 316 |
|
| 317 |
#. type: SH |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "VERSIONS" |
| 322 |
msgstr "VERSIONEN" |
| 323 |
|
| 324 |
#. type: Plain text |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
msgid "" |
| 328 |
"The versions of B<rand>() and B<srand>() in the Linux C Library use the " |
| 329 |
"same random number generator as B<random>(3) and B<srandom>(3), so the " |
| 330 |
"lower-order bits should be as random as the higher-order bits. However, on " |
| 331 |
"older B<rand>() implementations, and on current implementations on " |
| 332 |
"different systems, the lower-order bits are much less random than the higher-" |
| 333 |
"order bits. Do not use this function in applications intended to be " |
| 334 |
"portable when good randomness is needed. (Use B<random>(3) instead.)" |
| 335 |
msgstr "" |
| 336 |
"Die Versionen von B<rand>() und B<srand>() in der Linux C-Bibliothek " |
| 337 |
"benutzen den selben Zufallszahlengenerator wie B<random>(3) und " |
| 338 |
"B<srandom>(3), daher sollten niederwertige Bits genauso zufällig wie " |
| 339 |
"höherwertige Bits sein. Bei älteren Implementierungen von B<rand>() sind " |
| 340 |
"niederwertige Bits jedoch viel weniger zufällig als höherwertige Bits. " |
| 341 |
"Benutzen Sie diese Funktion nicht in Anwendungen, die portierbar sein " |
| 342 |
"sollen, wenn ein hochwertiger Zufall benötigt wird. (Benutzen Sie " |
| 343 |
"stattdessen B<random>(3).)" |
| 344 |
|
| 345 |
#. type: SH |
| 346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 347 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 348 |
#, no-wrap |
| 349 |
msgid "STANDARDS" |
| 350 |
msgstr "STANDARDS" |
| 351 |
|
| 352 |
#. type: TP |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
#, no-wrap |
| 356 |
msgid "B<rand>()" |
| 357 |
msgstr "B<rand>()" |
| 358 |
|
| 359 |
#. type: TQ |
| 360 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 361 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 362 |
#, no-wrap |
| 363 |
msgid "B<srand>()" |
| 364 |
msgstr "B<srand>()" |
| 365 |
|
| 366 |
#. type: Plain text |
| 367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 368 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 369 |
msgid "C11, POSIX.1-2008." |
| 370 |
msgstr "C11, POSIX.1-2008." |
| 371 |
|
| 372 |
#. type: TP |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
#, no-wrap |
| 376 |
msgid "B<rand_r>()" |
| 377 |
msgstr "B<rand_r>()" |
| 378 |
|
| 379 |
#. type: Plain text |
| 380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 382 |
msgid "POSIX.1-2008." |
| 383 |
msgstr "POSIX.1-2008." |
| 384 |
|
| 385 |
#. type: SH |
| 386 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 387 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 388 |
#, no-wrap |
| 389 |
msgid "HISTORY" |
| 390 |
msgstr "GESCHICHTE" |
| 391 |
|
| 392 |
#. type: Plain text |
| 393 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 394 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 395 |
msgid "SVr4, 4.3BSD, C89, POSIX.1-2001." |
| 396 |
msgstr "SVr4, 4.3BSD, C89, POSIX.1-2001." |
| 397 |
|
| 398 |
#. type: Plain text |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
msgid "POSIX.1-2001. Obsolete in POSIX.1-2008." |
| 402 |
msgstr "POSIX.1-2001. In POSIX.1-2008 als veraltet markiert." |
| 403 |
|
| 404 |
#. type: SH |
| 405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 407 |
#, no-wrap |
| 408 |
msgid "EXAMPLES" |
| 409 |
msgstr "BEISPIELE" |
| 410 |
|
| 411 |
#. type: Plain text |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
msgid "" |
| 415 |
"POSIX.1-2001 gives the following example of an implementation of B<rand>() " |
| 416 |
"and B<srand>(), possibly useful when one needs the same sequence on two " |
| 417 |
"different machines." |
| 418 |
msgstr "" |
| 419 |
"POSIX.1-2001 gibt das folgende Beispiel einer Implementierung von B<rand>() " |
| 420 |
"und B<srand>(), das vielleicht nützlich ist, wenn es darum geht, die gleiche " |
| 421 |
"Abfolge auf zwei unterschiedlichen Rechnern zu erhalten." |
| 422 |
|
| 423 |
#. type: Plain text |
| 424 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 425 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
#, no-wrap |
| 427 |
msgid "" |
| 428 |
"static unsigned long next = 1;\n" |
| 429 |
"\\&\n" |
| 430 |
"/* RAND_MAX assumed to be 32767 */\n" |
| 431 |
"int myrand(void) {\n" |
| 432 |
" next = next * 1103515245 + 12345;\n" |
| 433 |
" return((unsigned) (next/65536) % 32768);\n" |
| 434 |
"}\n" |
| 435 |
"\\&\n" |
| 436 |
"void mysrand(unsigned int seed) {\n" |
| 437 |
" next = seed;\n" |
| 438 |
"}\n" |
| 439 |
msgstr "" |
| 440 |
"static unsigned long next = 1;\n" |
| 441 |
"\\&\n" |
| 442 |
"/* es wird angenommen, dass RAND_MAX 32767 ist */\n" |
| 443 |
"int myrand(void) {\n" |
| 444 |
" next = next * 1103515245 + 12345;\n" |
| 445 |
" return((unsigned) (next/65536) % 32768);\n" |
| 446 |
"}\n" |
| 447 |
"\\&\n" |
| 448 |
"void mysrand(unsigned int seed) {\n" |
| 449 |
" next = seed;\n" |
| 450 |
"}\n" |
| 451 |
|
| 452 |
# http://de.wikipedia.org/wiki/Seed_key |
| 453 |
#. type: Plain text |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
msgid "" |
| 457 |
"The following program can be used to display the pseudo-random sequence " |
| 458 |
"produced by B<rand>() when given a particular seed. When the seed is " |
| 459 |
"I<-1>, the program uses a random seed." |
| 460 |
msgstr "" |
| 461 |
"Das folgende Programm kann benutzt werden, um eine pseudo-zufällige Sequenz " |
| 462 |
"anzuzeigen, die durch B<rand>() erzeugt wird, wenn ein bestimmter " |
| 463 |
"Zufallsstartwert (Zufallswert zum Erzeugen kryptografischer Schlüssel) " |
| 464 |
"vorgegeben wird. Wenn der Zufallsstartwert als I<-1> angegeben wird, " |
| 465 |
"verwendet das Programm einen zufälligen Zufallsstartwert." |
| 466 |
|
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
#, no-wrap |
| 471 |
msgid "" |
| 472 |
"#include E<lt>stdio.hE<gt>\n" |
| 473 |
"#include E<lt>stdlib.hE<gt>\n" |
| 474 |
"\\&\n" |
| 475 |
"int\n" |
| 476 |
"main(int argc, char *argv[])\n" |
| 477 |
"{\n" |
| 478 |
" int r;\n" |
| 479 |
" unsigned int seed, nloops;\n" |
| 480 |
"\\&\n" |
| 481 |
" if (argc != 3) {\n" |
| 482 |
" fprintf(stderr, \"Usage: %s E<lt>seedE<gt> E<lt>nloopsE<gt>\\[rs]n\", argv[0]);\n" |
| 483 |
" exit(EXIT_FAILURE);\n" |
| 484 |
" }\n" |
| 485 |
"\\&\n" |
| 486 |
" seed = atoi(argv[1]);\n" |
| 487 |
" nloops = atoi(argv[2]);\n" |
| 488 |
"\\&\n" |
| 489 |
" if (seed == -1) {\n" |
| 490 |
" seed = arc4random();\n" |
| 491 |
" printf(\"seed: %u\\[rs]n\", seed);\n" |
| 492 |
" }\n" |
| 493 |
"\\&\n" |
| 494 |
" srand(seed);\n" |
| 495 |
" for (unsigned int j = 0; j E<lt> nloops; j++) {\n" |
| 496 |
" r = rand();\n" |
| 497 |
" printf(\"%d\\[rs]n\", r);\n" |
| 498 |
" }\n" |
| 499 |
"\\&\n" |
| 500 |
" exit(EXIT_SUCCESS);\n" |
| 501 |
"}\n" |
| 502 |
msgstr "" |
| 503 |
"#include E<lt>stdio.hE<gt>\n" |
| 504 |
"#include E<lt>stdlib.hE<gt>\n" |
| 505 |
"\\&\n" |
| 506 |
"int\n" |
| 507 |
"main(int argc, char *argv[])\n" |
| 508 |
"{\n" |
| 509 |
" int r;\n" |
| 510 |
" unsigned int seed, nloops;\n" |
| 511 |
"\\&\n" |
| 512 |
" if (argc != 3) {\n" |
| 513 |
" fprintf(stderr, \"Usage: %s E<lt>seedE<gt> E<lt>nloopsE<gt>\\[rs]n\", argv[0]);\n" |
| 514 |
" exit(EXIT_FAILURE);\n" |
| 515 |
" }\n" |
| 516 |
"\\&\n" |
| 517 |
" seed = atoi(argv[1]);\n" |
| 518 |
" nloops = atoi(argv[2]);\n" |
| 519 |
"\\&\n" |
| 520 |
" if (seed == -1) {\n" |
| 521 |
" seed = arc4random();\n" |
| 522 |
" printf(\"seed: %u\\[rs]n\", seed);\n" |
| 523 |
" }\n" |
| 524 |
"\\&\n" |
| 525 |
" srand(seed);\n" |
| 526 |
" for (unsigned int j = 0; j E<lt> nloops; j++) {\n" |
| 527 |
" r = rand();\n" |
| 528 |
" printf(\"%d\\[rs]n\", r);\n" |
| 529 |
" }\n" |
| 530 |
"\\&\n" |
| 531 |
" exit(EXIT_SUCCESS);\n" |
| 532 |
"}\n" |
| 533 |
|
| 534 |
#. type: SH |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
#, no-wrap |
| 538 |
msgid "SEE ALSO" |
| 539 |
msgstr "SIEHE AUCH" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 543 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 544 |
msgid "B<drand48>(3), B<random>(3)" |
| 545 |
msgstr "B<drand48>(3), B<random>(3)" |
| 546 |
|
| 547 |
#. type: TH |
| 548 |
#: debian-trixie |
| 549 |
#, no-wrap |
| 550 |
msgid "2024-06-15" |
| 551 |
msgstr "15. Juni 2024" |
| 552 |
|
| 553 |
#. type: TH |
| 554 |
#: debian-trixie |
| 555 |
#, no-wrap |
| 556 |
msgid "Linux man-pages 6.9.1" |
| 557 |
msgstr "Linux man-pages 6.9.1" |
| 558 |
|
| 559 |
#. type: Plain text |
| 560 |
#: debian-trixie |
| 561 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 562 |
msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)" |
| 563 |
|
| 564 |
#. type: Plain text |
| 565 |
#: debian-trixie fedora-44 fedora-rawhide |
| 566 |
msgid "" |
| 567 |
"The B<rand>() function returns a pseudo-random integer in the range 0 to " |
| 568 |
"B<RAND_MAX> inclusive (i.e., the mathematical range [0,\\ B<RAND_MAX>])." |
| 569 |
msgstr "" |
| 570 |
"Die Funktion B<rand>() gibt eine pseudo-zufällige Ganzzahl im Bereich 0 bis " |
| 571 |
"B<RAND_MAX> inklusive zurück (d.h. dem mathematischen Bereich [0,\\ " |
| 572 |
"B<RAND_MAX>])." |
| 573 |
|
| 574 |
#. type: Plain text |
| 575 |
#: debian-trixie fedora-44 fedora-rawhide |
| 576 |
msgid "" |
| 577 |
"Like B<rand>(), B<rand_r>() returns a pseudo-random integer in the range " |
| 578 |
"[0,\\ B<RAND_MAX>]. The I<seedp> argument is a pointer to an I<unsigned " |
| 579 |
"int> that is used to store state between calls. If B<rand_r>() is called " |
| 580 |
"with the same initial value for the integer pointed to by I<seedp>, and that " |
| 581 |
"value is not modified between calls, then the same pseudo-random sequence " |
| 582 |
"will result." |
| 583 |
msgstr "" |
| 584 |
"Wie B<rand>() gibt B<rand_r>() eine pseudo-zufällige Ganzzahl im Bereich " |
| 585 |
"[0,\\ B<RAND_MAX>] zurück. Das Argument I<zstartz> ist ein Zeiger auf einen " |
| 586 |
"I<unsigned int>, der benutzt wird, um den Status zwischen Aufrufen zu " |
| 587 |
"speichern. Falls B<rand_r>() mit dem gleichen Anfangswert für die Ganzzahl " |
| 588 |
"aufgerufen wird, auf die I<zstartz> zeigt, und der Wert zwischen den " |
| 589 |
"Aufrufen nicht verändert wurde, dann wird das Ergebnis die gleiche pseudo-" |
| 590 |
"zufällige Sequenz sein." |
| 591 |
|
| 592 |
#. type: Plain text |
| 593 |
#: debian-trixie |
| 594 |
#, no-wrap |
| 595 |
msgid "" |
| 596 |
"static unsigned long next = 1;\n" |
| 597 |
"\\&\n" |
| 598 |
"/* RAND_MAX assumed to be 32767 */\n" |
| 599 |
"int myrand(void) {\n" |
| 600 |
" next = next * 1103515245 + 12345;\n" |
| 601 |
" return((unsigned)(next/65536) % 32768);\n" |
| 602 |
"}\n" |
| 603 |
"\\&\n" |
| 604 |
"void mysrand(unsigned int seed) {\n" |
| 605 |
" next = seed;\n" |
| 606 |
"}\n" |
| 607 |
msgstr "" |
| 608 |
"static unsigned long next = 1;\n" |
| 609 |
"\\&\n" |
| 610 |
"/* es wird angenommen, dass RAND_MAX 32767 ist */\n" |
| 611 |
"int myrand(void) {\n" |
| 612 |
" next = next * 1103515245 + 12345;\n" |
| 613 |
" return((unsigned)(next/65536) % 32768);\n" |
| 614 |
"}\n" |
| 615 |
"\\&\n" |
| 616 |
"void mysrand(unsigned int seed) {\n" |
| 617 |
" next = seed;\n" |
| 618 |
"}\n" |
| 619 |
|
| 620 |
#. type: TH |
| 621 |
#: fedora-44 fedora-rawhide |
| 622 |
#, no-wrap |
| 623 |
msgid "2025-01-05" |
| 624 |
msgstr "5. Januar 2025" |
| 625 |
|
| 626 |
#. type: TH |
| 627 |
#: fedora-44 fedora-rawhide |
| 628 |
#, no-wrap |
| 629 |
msgid "Linux man-pages 6.13" |
| 630 |
msgstr "Linux man-pages 6.13" |
| 631 |
|
| 632 |
#. type: TH |
| 633 |
#: mageia-cauldron |
| 634 |
#, no-wrap |
| 635 |
msgid "Linux man-pages 6.17" |
| 636 |
msgstr "Linux man-pages 6.17" |
| 637 |
|
| 638 |
#. type: TH |
| 639 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 640 |
#, no-wrap |
| 641 |
msgid "Linux man-pages (unreleased)" |
| 642 |
msgstr "Linux man-pages (unveröffentlicht)" |