Setting last N bits in an array
- by Martin
I'm sure this is fairly simple, however I have a major mental block on it, so I need a little help here!
I have an array of 5 integers, the array is already filled with some data. I want to set the last N bits of the array to be random noise.
[int][int][int][int][int]
set last 40 bits
[unchanged][unchanged][unchanged][24 bits of old data…