From owner-freebsd-current@FreeBSD.ORG Wed Sep 29 18:22:32 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0324106566C; Wed, 29 Sep 2010 18:22:32 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id E84328FC15; Wed, 29 Sep 2010 18:22:31 +0000 (UTC) Received: by wwb17 with SMTP id 17so1416547wwb.31 for ; Wed, 29 Sep 2010 11:22:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=atEdl6820wTMgTXlz2WqxakB8Rib/i90QKKHlh1RcNE=; b=RKpGiLJiNAPJt+rdPj10FrW/KKbSqwGEK4XId9jKqBLZFbXD/D2em2owJxNcLxA4gD X89YNwj48qpcxkEgIg0kjcFVfeqAq4Tg+Nqi0NohzMAuhKU4uocCtlT+UfgAYhn9vQiW oNC3Ru8XMOX/va92fmqqDMEr3f9urbgNv+qCI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=OiZE+/5AGT7Ibt9YsnaUBT2odFXR3KH+yOMX/1QkjS2neJb7wxv31x8YaR0yENoRZu /gSQv88aBXfK/mIA2Vrg0AHF9WQyrcO6QBoqRxxv4yeqLLGtvz5tkR2+NYn1KgFEQvMn P7yoQZfYQ72bqimHODhU+xGCk0VYVMhMPM3q8= Received: by 10.216.35.75 with SMTP id t53mr2846899wea.95.1285784547908; Wed, 29 Sep 2010 11:22:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.181.142 with HTTP; Wed, 29 Sep 2010 11:22:07 -0700 (PDT) In-Reply-To: <20100929174434.GA75072@freebsd.org> References: <4C99A53E.7060707@FreeBSD.org> <20100929002843.GA5001@oriental.arm.org> <4CA2E00D.3080102@FreeBSD.org> <4CA3244D.7030907@FreeBSD.org> <20100929155659.GA82433@oriental.arm.org> <20100929173158.GA73653@freebsd.org> <20100929174434.GA75072@freebsd.org> From: Renato Botelho Date: Wed, 29 Sep 2010 15:22:07 -0300 Message-ID: To: Roman Divacky Content-Type: text/plain; charset=ISO-8859-1 Cc: Derek Tattersall , Dimitry Andric , current@freebsd.org Subject: Re: Clang now builds world and kernel, on i386 and amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2010 18:22:32 -0000 On Wed, Sep 29, 2010 at 2:44 PM, Roman Divacky wrote: > heh, now I noticed that Derek already wrote that ;) is anyone able > to find where in perl sources the rand function is defined? I failed > that :( It's using drand48() instead of rand() root@botelhor:/usr/ports/lang/perl5.12# make configure |& grep -i rand drand48_r() NOT found. random_r() NOT found. srand48_r() NOT found. srandom_r() NOT found. Looking for a random number function... Good, found drand48(). Use which function to generate random numbers? [drand48] Checking how to generate random libraries on your machine... Test results here: GCC libc: garga@botelhor:~/testes> ./test random value 0.396465 clang libc: garga@botelhor:~/testes> ./test random value -inf Source of test.c: #include #include #include int main() { printf("random value %f\n", drand48()); exit(0); } -- Renato Botelho