msm: implement ARCH_RANDOM