Re: simple PRNG?



Richard Heathfield wrote:
jacob navia said:

<snip>
The lcc-win compiler system uses this:

Let us not forget that the lcc-win compiler system does not conform to ISO/IEC 9899:1999, which you have said this very morning is "standard C". So you're advocating a non-conforming compiler system.

<snip>

This needs 32 bit maths as you see. I think it could be ported to 16
bits by making the result mod 2^16 -1

Yes, it can. Unfortunately, this gives the result 32767 on every call.

I said "ported". Not just copied



--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
.



Relevant Pages

  • Re: simple PRNG?
    ... So you're advocating a non-conforming compiler system. ...
    (comp.lang.c)
  • Re: "Criticism of the C programming language ??????"
    ... [snip long blah blah about why I am bad and the evil of my ways] ... makes it less useful since third party libraries ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • Re: force full duplex
    ... > How can I make my system run with full duplex? ... here is snip of http://www.ovislink.com.tw/DRIVERS/8139/linux-help.htm ... Driver is designed with the goal that no options should be needed in ...
    (Debian-User)
  • Re: "Criticism of the C programming language ??????"
    ... I'm not sure that I agree that my comments are derogatory. ... Some, sure, out of sheer exasperation - but mostly I seem to attract flak for correcting his errors. ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • Re: Debuggers
    ... It was Jacob that claimed something was ... Why not reply to him saying "anything is possible"? ... The debugger was last ...
    (comp.lang.c)