From nobody@FreeBSD.org  Tue Feb  2 00:11:52 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8D83E1065672
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Feb 2010 00:11:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 62DB68FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Feb 2010 00:11:52 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o120BqLb070983
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 2 Feb 2010 00:11:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o120Bq3q070982;
	Tue, 2 Feb 2010 00:11:52 GMT
	(envelope-from nobody)
Message-Id: <201002020011.o120Bq3q070982@www.freebsd.org>
Date: Tue, 2 Feb 2010 00:11:52 GMT
From: Jeremy Huddleston <jeremyhu@apple.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: rand48(3) has incorrect defaults information
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         143461
>Category:       docs
>Synopsis:       rand48(3) has incorrect defaults information
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 02 00:20:01 UTC 2010
>Closed-Date:    Tue Feb 23 22:01:36 UTC 2010
>Last-Modified:  Tue Feb 23 22:01:36 UTC 2010
>Originator:     Jeremy Huddleston
>Release:        8.0
>Organization:
Apple
>Environment:
NA
>Description:
rand48(3) states,

"""
default values are for the multiplicand a = 0xfdeece66d = 25214903917 
"""

but those are not equal.  

0x5deece66d = 25214903917 

http://www.google.com/search?q=25214903917+in+hex

0x5deece66d is the correct value
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/143461: commit references a PR
Date: Tue,  2 Feb 2010 19:28:15 +0000 (UTC)

 Author: gavin
 Date: Tue Feb  2 19:28:01 2010
 New Revision: 203393
 URL: http://svn.freebsd.org/changeset/base/203393
 
 Log:
   The multiplicand a = 0x5deece66d = 25214903917, not 0xfdeece66d.
   This bug in the man page has gone unnoticed for over 15 years!
   
   PR:		docs/143461
   Submitted by:	Jeremy Huddleston  jeremyhu apple.com
   Approved by:	ed (mentor, implicit)
   MFC after:	1 week
 
 Modified:
   head/lib/libc/gen/rand48.3
 
 Modified: head/lib/libc/gen/rand48.3
 ==============================================================================
 --- head/lib/libc/gen/rand48.3	Tue Feb  2 19:19:57 2010	(r203392)
 +++ head/lib/libc/gen/rand48.3	Tue Feb  2 19:28:01 2010	(r203393)
 @@ -57,7 +57,7 @@ The
  particular formula employed is
  r(n+1) = (a * r(n) + c) mod m
  where the default values are
 -for the multiplicand a = 0xfdeece66d = 25214903917 and
 +for the multiplicand a = 0x5deece66d = 25214903917 and
  the addend c = 0xb = 11.
  The modulo is always fixed at m = 2 ** 48.
  r(n) is called the seed of the random number generator.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/143461: commit references a PR
Date: Sat, 13 Feb 2010 10:26:12 +0000 (UTC)

 Author: gavin
 Date: Sat Feb 13 10:26:00 2010
 New Revision: 203817
 URL: http://svn.freebsd.org/changeset/base/203817
 
 Log:
   Merge r203393,r203395 from head:
   
     The multiplicand a = 0x5deece66d = 25214903917, not 0xfdeece66d.
     This bug in the man page has gone unnoticed for over 15 years!
   
   PR:		docs/143461
   Submitted by:	Jeremy Huddleston  jeremyhu apple.com
 
 Modified:
   stable/8/lib/libc/gen/rand48.3
 Directory Properties:
   stable/8/lib/libc/   (props changed)
   stable/8/lib/libc/stdtime/   (props changed)
 
 Modified: stable/8/lib/libc/gen/rand48.3
 ==============================================================================
 --- stable/8/lib/libc/gen/rand48.3	Sat Feb 13 10:22:07 2010	(r203816)
 +++ stable/8/lib/libc/gen/rand48.3	Sat Feb 13 10:26:00 2010	(r203817)
 @@ -12,7 +12,7 @@
  .\"     @(#)rand48.3 V1.0 MB 8 Oct 1993
  .\" $FreeBSD$
  .\"
 -.Dd October 8, 1993
 +.Dd February 2, 2010
  .Dt RAND48 3
  .Os
  .Sh NAME
 @@ -57,7 +57,7 @@ The
  particular formula employed is
  r(n+1) = (a * r(n) + c) mod m
  where the default values are
 -for the multiplicand a = 0xfdeece66d = 25214903917 and
 +for the multiplicand a = 0x5deece66d = 25214903917 and
  the addend c = 0xb = 11.
  The modulo is always fixed at m = 2 ** 48.
  r(n) is called the seed of the random number generator.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/143461: commit references a PR
Date: Tue, 23 Feb 2010 19:37:13 +0000 (UTC)

 Author: gavin
 Date: Tue Feb 23 19:37:00 2010
 New Revision: 204255
 URL: http://svn.freebsd.org/changeset/base/204255
 
 Log:
   Merge r203393,r203395 from head:
   
     The multiplicand a = 0x5deece66d = 25214903917, not 0xfdeece66d.
     This bug in the man page has gone unnoticed for over 15 years!
   
   PR:		docs/143461
   Submitted by:	Jeremy Huddleston  jeremyhu apple.com
 
 Modified:
   stable/7/lib/libc/gen/rand48.3
 Directory Properties:
   stable/7/lib/libc/   (props changed)
   stable/7/lib/libc/stdtime/   (props changed)
 
 Modified: stable/7/lib/libc/gen/rand48.3
 ==============================================================================
 --- stable/7/lib/libc/gen/rand48.3	Tue Feb 23 19:34:22 2010	(r204254)
 +++ stable/7/lib/libc/gen/rand48.3	Tue Feb 23 19:37:00 2010	(r204255)
 @@ -12,7 +12,7 @@
  .\"     @(#)rand48.3 V1.0 MB 8 Oct 1993
  .\" $FreeBSD$
  .\"
 -.Dd October 8, 1993
 +.Dd February 2, 2010
  .Dt RAND48 3
  .Os
  .Sh NAME
 @@ -57,7 +57,7 @@ The
  particular formula employed is
  r(n+1) = (a * r(n) + c) mod m
  where the default values are
 -for the multiplicand a = 0xfdeece66d = 25214903917 and
 +for the multiplicand a = 0x5deece66d = 25214903917 and
  the addend c = 0xb = 11.
  The modulo is always fixed at m = 2 ** 48.
  r(n) is called the seed of the random number generator.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: gavin 
State-Changed-When: Tue Feb 23 22:00:57 UTC 2010 
State-Changed-Why:  
Fixed in head, stable/8 and stable/7.  Thanks for your bug report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=143461 
>Unformatted:
 >anformatted:
