Fix warning and simplify encodeRandomOrder.
Disable strict aliasing for safe type punning, fix potentially uninitialized
variable warning.
Merge pull request #3076 from ey6es/master

Fixes for uninitialized variable warnings, disabled strict aliasing to allow safe type punning (and avoid warnings).