added random seed to xae layers