linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Walter Harms <wharms@bfs.de>
To: Jakub Wilk <jwilk@jwilk.net>
Cc: John Marshall <John.W.Marshall@glasgow.ac.uk>,
	Michael Kerrisk <mtk.manpages@gmail.com>,
	"linux-man@vger.kernel.org" <linux-man@vger.kernel.org>
Subject: AW: AW: [patch] random.3: wfix: RAND_MAX is for rand(3)
Date: Mon, 8 Jun 2020 12:50:51 +0000	[thread overview]
Message-ID: <1113d0a16dab434089eae4a80bf9674e@bfs.de> (raw)
In-Reply-To: <20200608112101.fuilahvdbacmdah6@jwilk.net>

misunderstanding,

the page random(3) says (in my version)
"range from 0 to 2**31-1." it does not mention
rand_max, INT32_MAX or some other constant only the numerical value.

It happens to be INT32_MAX, but in this case i would simply drop it.
________________________________________
Von: Jakub Wilk <jwilk@jwilk.net>
Gesendet: Montag, 8. Juni 2020 13:21:01
An: Walter Harms
Cc: John Marshall; Michael Kerrisk; linux-man@vger.kernel.org
Betreff: Re: AW: [patch] random.3: wfix: RAND_MAX is for rand(3)

* Walter Harms <wharms@bfs.de>, 2020-06-08, 11:10:
>INT32_MAX is not mentioned in the POSIX page

Yes, it is:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdint.h.html#tag_13_47_03_02

--
Jakub Wilk

  reply	other threads:[~2020-06-08 12:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-05 17:21 random(3) and RAND_MAX John Marshall
2020-06-06 12:45 ` AW: " Walter Harms
2020-06-08 11:04   ` [patch] random.3: wfix: RAND_MAX is for rand(3) John Marshall
2020-06-08 11:10     ` AW: " Walter Harms
2020-06-08 11:20       ` John Marshall
2020-06-08 11:21       ` AW: " Jakub Wilk
2020-06-08 12:50         ` Walter Harms [this message]
2020-06-08 20:27     ` Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1113d0a16dab434089eae4a80bf9674e@bfs.de \
    --to=wharms@bfs.de \
    --cc=John.W.Marshall@glasgow.ac.uk \
    --cc=jwilk@jwilk.net \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).