Fix Mersenne output on big-endian machines

pull/416/head
Jeffrey Walton 2017-05-10 21:00:53 -04:00
parent 2a20d09dc6
commit 702dae7db9
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public:
for (size_t i=0; i < size/4; i++, output += 4)
{
temp = NextMersenneWord();
PutWord<word32>(false, LITTLE_ENDIAN_ORDER, output, temp);
memcpy(output, &temp, 4);
}
// No tail bytes