Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2002 16:43:10 +0100 (CET)
From:      Ulrich Spoerlein <q@uni.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/44592: PATCH: Fix "billenium" bug with math/concorde
Message-ID:  <200210291543.g9TFhApR059650@coyote.dnsalias.net>

next in thread | raw e-mail | index | archive | help

>Number:         44592
>Category:       ports
>Synopsis:       PATCH: Fix "billenium" bug with math/concorde
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 29 07:50:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:


	
>Description:
On their page they state that concorde has a bug and needs a new urandom.c
http://www.math.princeton.edu/tsp/concorde/download.html
	
>How-To-Repeat:
	
>Fix:
this patch is just a diff between the old and the new urandom.c.
just put it in math/concorde/files

	

--- patch-aa begins here ---
--- UTIL/urandom.c.orig	Thu Dec 16 19:39:06 1999
+++ UTIL/urandom.c	Tue Sep 18 21:08:37 2001
@@ -22,7 +22,7 @@
 /*                                                                          */
 /*  Written by:  DIMACS  (modified for TSP)                                 */
 /*  Date: February 7, 1995  (cofeb16)                                       */
-/*                                                                          */
+/*        September 18, 2001  (billenium fix)                               */
 /*                                                                          */
 /*    EXPORTED FUNCTIONS:                                                   */
 /*                                                                          */
@@ -66,6 +66,9 @@
     int i, ii;
     int last, next;
     int *arr = r->arr;
+
+    seed %= CC_PRANDMAX;
+    if (seed < 0) seed += CC_PRANDMAX;
 
     arr[0] = last = seed;
     next = 1;
--- patch-aa ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210291543.g9TFhApR059650>