You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/02/10 15:57:22 UTC

DO NOT REPLY [Bug 33491] New: - apr-util/test/testdate.c and testreslist use non-portable random methods

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33491>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33491

           Summary: apr-util/test/testdate.c and testreslist use non-
                    portable random methods
           Product: APR
           Version: HEAD
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR-util
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: carnold@apache.org


These modules use methods, srandom, random and drandom (or srand48, rand48 or
drand48 if available), that are not provided in the Microsoft C++ runtime
library.  I assume these could be rewritten to use methods provided by apr_random.h.

In addition, the constants in the year2secs initializer in testdate.c, use the
LL suffix for long long, however that is not supported by MSVC and should be
replaced by use of the APR_INT64_C macro.

testdate.c would appear to be more appropriate to be located in the APR module
since apr_date is part of APR, not APR-util.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org