Re[2]: Borland C random number generator?

New Message Reply About this list Date view Thread view Subject view Author view

mlynn@west.raytheon.com
Fri, 28 Aug 1998 09:49 -0700 (PDT)


     Please help get me off your distribution list - I'm inundated with you
     guys' email. I think I'm somehow 'attached' to the "CodherPlunks"
     address.

______________________________ Reply Separator _________________________________
Subject: Re: Borland C random number generator?
Author: gwadej@anomaly.org at mime
Date: 8/27/98 05:42 PM

At 03:51 PM 8/26/98 -0700, you wrote:
>Does anyone know the constants used in Borland's Turbo C linear
>congruential PRNG used in their rand() function? I would guess it's
>the same as for Borland Professional C++ and the other versions, but
>don't know that for a fact.
>
>I'm trying to replicate a DOS crypto-like program's operation on my
>more convenient Linux box.
>
>Thanks -
>
> Jim Gillogly
> 4 Halimath S.R. 1998, 22:51
> 12.19.5.8.7, 10 Manik 20 Yaxkin, Fifth Lord of Night
     
As of version 4.5, it was
multiplier = 0x015a4e35L
increment = 1
seeds are mod 32768
output is right-shifted 16 bits then mod 32768
     
G. Wade
G. Wade Johnson Telescan, Inc. gwadej@anomaly.org
"any technology sufficiently advanced is indistinguishable from a Perl
script."
                                                 -- Programming Perl, 2nd ed.

RFC-822-headers:
Received: from CONVERSION-DAEMON by mail.hac.com (PMDF V5.1-10 #26245)
 id <0EYD00101OK65G@mail.hac.com>; Thu, 27 Aug 1998 19:36:07 -0700 (PDT)
Received: from PROCESS-DAEMON by mail.hac.com (PMDF V5.1-10 #26245)
 id <0EYD00101OK55E@mail.hac.com>; Thu, 27 Aug 1998 19:36:06 -0700 (PDT)
Received: from fw-tu05.hac.com by mail.hac.com (PMDF V5.1-10 #26245)
 with ESMTP id <0EYD00N3MOK44H@mail.hac.com>; Thu,
 27 Aug 1998 19:36:05 -0700 (PDT)
Received: from toad.com ([140.174.2.1]) by fw-tu05.hac.com (8.9.0/8.9.0)
 with ESMTP id TAA11530; Thu, 27 Aug 1998 19:24:49 -0700 (MST)
Received: (from Received: (from majordom@localhost) by toad.com (8.7.5/8.7.3)
 id RAA19947 for CodherPlunks-outgoing; Thu, 27 Aug 1998 17:42:53 -0700 (PDT)
Received: from baileys.infohwy.com (root@baileys.infohwy.com [205.182.52.72])
 by toad.com (8.7.5/8.7.3) with ESMTP id RAA19934 for <CodherPlunks@toad.com>;
 Thu, 27 Aug 1998 17:42:48 -0700 (PDT)
Received: from stormbringer (max1-78.max1.hou.infohwy.com [205.182.54.78])
 by baileys.infohwy.com (8.8.8/8.8.8) with SMTP id TAA22176; Thu,
 27 Aug 1998 19:41:37 -0500 (CDT)
Date: Thu, 27 Aug 1998 19:42:07 -0500
From: "G. Wade Johnson" <gwadej@anomaly.org>
Subject: Re: Borland C random number generator?
In-reply-to: <199808262251.PAA00725@zendia.mentat.com>
Sender: owner-CodherPlunks@toad.com
X-Sender: gwadej@mail2.infohwy.com
Message-id: <199808280041.TAA22176@baileys.infohwy.com>
MIME-version: 1.0
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0
Precedence: bulk


New Message Reply About this list Date view Thread view Subject view Author view

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

The following archive was created by hippie-mail 7.98617-22 on Sat Apr 10 1999 - 01:11:02