Make construction of random components of layers repeatable.