Fixed random seed issue with constraints