From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c9d5fc258548b22a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Mon, 07 Feb 2011 22:41:29 +0000 Organization: A noiseless patient Spider Message-ID: References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <31c357bd-c8dc-4583-a454-86d9c579e5f4@m13g2000yqb.googlegroups.com> <05a3673e-fb97-449c-94ed-1139eb085c32@x1g2000yqb.googlegroups.com> <8r86vgFc3uU1@mid.individual.net> <19fh1chm74f9.11cws0j5bckze.dlg@40tude.net> <4d4ff70e$0$6886$9b4e6d93@newsspool2.arcor-online.net> <737a6396-72bd-4a1e-8895-7d50f287960e@d28g2000yqc.googlegroups.com> <4d5008a5$0$6879$9b4e6d93@newsspool2.arcor-online.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="6956"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PzNxlyhYVi7NMwxUGl+y6UabbjcCeqS8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:u1jRNVBAiG8zluo4Kz9h3FCEy8w= sha1:HYsxTDtbAy7htFQ72IwNI3T7+Bw= Xref: g2news2.google.com comp.lang.ada:17925 Date: 2011-02-07T22:41:29+00:00 List-Id: Robert A Duff writes: > Jeffrey Carter writes: > >> I suppose you could save the sequence of values returned so far, and >> the state would be an index into that sequence. > > Good point. > > I guess the state would be the whole sequence, plus an index into it, > or something like that. I don't think this would meet A.5.2(28), "[...] All generators are implicitly initialized to an unspecified state that does not vary from one program execution to another[...]". I suppose that (reverting to the current Numerics.Discrete_Random) means "for the same compiler on the same architecture"? You could hardly expect GCC 4.3.3 on PowerPC to produce the same output as GCC 4.6.0 on x86_64. Or could it even mean "for executions of a specific build of a specific program on a specific machine"?