Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2026 19:08:03 +0000
From:      Aymeric Wibo <obiwac@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: eda74fe47993 - main - rand(3): Normalize function ordering
Message-ID:  <6a1b3593.20d6b.6743a859@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by obiwac:

URL: https://cgit.FreeBSD.org/src/commit/?id=eda74fe47993f1d62e7c110850def6960b55291e

commit eda74fe47993f1d62e7c110850def6960b55291e
Author:     Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-05-30 19:00:02 +0000
Commit:     Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-05-30 19:07:29 +0000

    rand(3): Normalize function ordering
    
    Align ordering between NAME & SYNOPSIS sections.
    
    Obtained from:  https://github.com/apple-oss-distributions/libc
    Sponsored by:   Klara, Inc.
---
 lib/libc/stdlib/rand.3 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/libc/stdlib/rand.3 b/lib/libc/stdlib/rand.3
index 33eaa191b4fe..200e770b6daf 100644
--- a/lib/libc/stdlib/rand.3
+++ b/lib/libc/stdlib/rand.3
@@ -29,24 +29,24 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd February 1, 2020
+.Dd May 30, 2026
 .Dt RAND 3
 .Os
 .Sh NAME
 .Nm rand ,
-.Nm srand ,
-.Nm rand_r
+.Nm rand_r ,
+.Nm srand
 .Nd bad random number generator
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
 .In stdlib.h
-.Ft void
-.Fn srand "unsigned seed"
 .Ft int
 .Fn rand void
 .Ft int
 .Fn rand_r "unsigned *ctx"
+.Ft void
+.Fn srand "unsigned seed"
 .Sh DESCRIPTION
 .Bf -symbolic
 The functions described in this manual page are not cryptographically


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1b3593.20d6b.6743a859>