From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9530 invoked by alias); 13 Jul 2014 16:04:22 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 9517 invoked by uid 89); 13 Jul 2014 16:04:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qa0-f43.google.com Received: from mail-qa0-f43.google.com (HELO mail-qa0-f43.google.com) (209.85.216.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 13 Jul 2014 16:04:20 +0000 Received: by mail-qa0-f43.google.com with SMTP id w8so2461299qac.16 for ; Sun, 13 Jul 2014 09:04:18 -0700 (PDT) X-Received: by 10.140.25.51 with SMTP id 48mr4639174qgs.9.1405267458476; Sun, 13 Jul 2014 09:04:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.33.161 with HTTP; Sun, 13 Jul 2014 09:03:58 -0700 (PDT) In-Reply-To: <53C2A91D.1070808@oracle.com> References: <53C28FBB.9080708@verizon.net> <53C2A91D.1070808@oracle.com> From: Ulrich Drepper Date: Sun, 13 Jul 2014 16:04:00 -0000 Message-ID: Subject: Re: [PATCH] libstdc++: add uniform on sphere distribution To: Paolo Carlini Cc: Ed Smith-Rowland <3dw4rd@verizon.net>, gcc-patches Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-07/txt/msg00915.txt.bz2 On Sun, Jul 13, 2014 at 11:43 AM, Paolo Carlini wrote: > and I think: the normal distributions in x and y do have a non-trivial state > (_M_saved, _M_saved_available) which, at any given moment, is different in x > and y. Then the trivial inserter of x is called and the trivial extractor of > y is called, nothing changes in y. I don't see how the following invocations > of y(g) can produce the same sequence of numbers that would be produced by > invocations of x(g). Remember: we are talking about distributions, not RNGs. The distribution has no parameters so given the same input (i.e., random byte sequences) it will create the same output all the time.