sprandom: relax power of 2 block size requirement

There is no a priori reason why the SPRandom approach cannot work with
block sizes that are not a power of 2. Lift the constraint that allows
only power of 2 block sizes when sprandom is enabled.

This allows sprandom to be used when devices are formatted in extended
LBA (DIF) mode with 520- or 4160-byte sectors.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
1 file changed