OSDN Git Service

Update draft pages
[linuxjm/LDP_man-pages.git] / draft / man3 / rand.3
index 52a5bbb..34ca74b 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -19,6 +20,7 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" References consulted:
 .\"     Linux libc source code
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH RAND 3 2010\-10\-01 "" "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 1997 YOSHINO Takashi all rights reserved.
+.\" Translated 1997-01-21, YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
+.\" Updated 2000-09-24, Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2005-03-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\" Updated 2008-08-08, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.05
+.\"
+.TH RAND 3 2014\-01\-18 "" "Linux Programmer's Manual"
 .SH 名前
 rand, srand \- 乱数を生成する関数
 .SH 書式
@@ -69,7 +78,7 @@ glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参
 .PP
 種の値が与えられない場合には、 \fBrand\fP()  関数は 自動的に 1 を種とする。
 .PP
-\fBrand\fP() 関数は再入可能 (reentrant) ではない、つまりスレッド・セーフではない。
+\fBrand\fP() 関数は再入可能 (reentrant) ではない、つまりスレッド・セーフではない。
 この関数には隠し状態があり、呼び出される度にこの隠し状態が変更されるからである。
 ちょうどこの隠し状態が次の呼び出し時の乱数の種として使われるようなものである。
 実際にはもう少し複雑かもしれないが。
@@ -113,7 +122,7 @@ int myrand(void) {
     return((unsigned)(next/65536) % 32768);
 }
 
-void mysrand(unsigned seed) {
+void mysrand(unsigned int seed) {
     next = seed;
 }
 .fi
@@ -154,6 +163,6 @@ main(int argc, char *argv[])
 .SH 関連項目
 \fBdrand48\fP(3), \fBrandom\fP(3)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.78 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。