FIX: random state not passed