Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-21 Thread Michael Kerrisk
tags 328269 fixed-upstream thanks Andries, Von: Andries Brouwer [EMAIL PROTECTED] On Mon, Sep 19, 2005 at 07:35:30PM +0200, Hrvoje Niksic wrote: Andries Brouwer [EMAIL PROTECTED] writes: This can be replaced by FreeBSD adds a function void sranddev(void); that

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-21 Thread Michael Kerrisk
Hrvoje, Better yet, the limited space available in a man page should be spent documenting the API Linux does support. For example, it could mention that RAND_MAX is not 32767, unlike many other systems. It could mention that RAND_MAX+1 causes an overflow on Linux, breaking poorly written

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-20 Thread Andries Brouwer
On Tue, Sep 20, 2005 at 02:34:37AM +0200, Hrvoje Niksic wrote: I have provided arguments for my position, to which you failed to respond. You didn't give any reasons why you consider FreeBSD to be very similar to Linux No response is needed. If you do not understand that the specific

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-20 Thread Hrvoje Niksic
Andries Brouwer [EMAIL PROTECTED] writes: On Tue, Sep 20, 2005 at 02:34:37AM +0200, Hrvoje Niksic wrote: I have provided arguments for my position, to which you failed to respond. You didn't give any reasons why you consider FreeBSD to be very similar to Linux No response is needed. [...]

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-19 Thread Michael Kerrisk
[Andries Brower CCed since he may have written the original text] Package: manpages-dev Version: 2.02-2 Severity: minor Man page for rand(3) claims the following: FreeBSD adds a function void sranddev(void); that initializes the seed for their bad random

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-19 Thread Andries Brouwer
On Mon, Sep 19, 2005 at 02:58:24PM +0200, Michael Kerrisk wrote: [Andries Brower CCed since he may have written the original text] Package: manpages-dev Version: 2.02-2 Severity: minor Man page for rand(3) claims the following: FreeBSD adds a function

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-19 Thread Hrvoje Niksic
Michael Kerrisk [EMAIL PROTECTED] writes: I see two possible ways of dealing with this: 1. s/random()/random(4)/ in the Linux page. 2. Simply remove this text from the page. What do you think? The first possibility doesn't make sense without also removing the deridive adjective strange,

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-19 Thread Hrvoje Niksic
Andries Brouwer [EMAIL PROTECTED] writes: This can be replaced by FreeBSD adds a function void sranddev(void); that initializes the seed for rand() with a value obtained from the /dev/random device. But why waste space on functions on other operating systems that Linux doesn't have?

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-19 Thread Andries Brouwer
On Mon, Sep 19, 2005 at 07:35:30PM +0200, Hrvoje Niksic wrote: Andries Brouwer [EMAIL PROTECTED] writes: This can be replaced by FreeBSD adds a function void sranddev(void); that initializes the seed for rand() with a value obtained from the /dev/random device. But why waste

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-19 Thread Hrvoje Niksic
Andries Brouwer [EMAIL PROTECTED] writes: But why waste space on functions on other operating systems that Linux doesn't have? All Unix-like operating systems are rather similar. Except this function has no root in Unix tradition, it is a FreeBSD invention not shared by other Unix-like

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-19 Thread Andries Brouwer
On Tue, Sep 20, 2005 at 12:39:55AM +0200, Hrvoje Niksic wrote: [muttering that he does not want to hear about differences between the FreeBSD and the Linux API for the rand() family of functions; don't know why - I always consider info about differences important] But now that I see my text

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-19 Thread Hrvoje Niksic
Andries Brouwer [EMAIL PROTECTED] writes: On Tue, Sep 20, 2005 at 12:39:55AM +0200, Hrvoje Niksic wrote: [muttering that he does not want to hear about differences between the FreeBSD and the Linux API for the rand() family of functions; don't know why - I always consider info about

Bug#328269: manpages-dev: rand() manpage misrepresents FreeBSD's sranddev()

2005-09-14 Thread Hrvoje Niksic
Package: manpages-dev Version: 2.02-2 Severity: minor Man page for rand(3) claims the following: FreeBSD adds a function void sranddev(void); that initializes the seed for their bad random generator rand() with a value obtained from their good random generator