Re: Random numbers and Endians

Jean-Luc Arnaud <jean-luc-E/[email protected]> Fri, 8 Dec 2017 10:32:17 +0100
Newsgroups gmane.comp.lang.realbasic.user
Organization Centre Direct du Multimédia
Message-ID <[email protected]>
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]