Re: Random numbers and Endians
donJ <[email protected]> Fri, 8 Dec 2017 07:51:54 -0600
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Jean-Luc, Thank you for the idea, but I think I am mistaken about the problem. When I start with a new empty app, I get the same result on both systems, so I need to investigate more, Thanks for your time. Don On 12/08/2017 03:32 AM, Jean-Luc Arnaud wrote: > Maybe you could read the file in a MemoryBlock and change the Endian > property before rewriting it on disk? > > Jean-Luc Arnaud > > Le 08/12/2017 à 01:20, donJ a écrit : >> Hi, >> I have an app that uses the Xojo random class with seeds to create >> repeatable strings of pseudorandomly selected numbers. It worked fine >> until I made a 64 bit version. A file saved on a 32 system bit does >> not open correctly on a 64 bit system. >> A little research indicates that this is due to the Random class >> depending on Endianess. >> So I think the simplest way to fix this is to find (or write) a >> random method that does not depend on Endianess. Does one exist? Or >> can someone point me to some information about it? >> >> Thanks, >> >> Don >> >> >> To unsubscribe, email [email protected] >> >> > > > > > To unsubscribe, email [email protected] > > To unsubscribe, email [email protected]