mtd: tests: use random32 instead of home-brewed generator