Fix nondeterminism
Fix nondeterminism

Summary:
As title.

NOTE: Will port to staging to stable after review too.

Reviewed By: thezhangwei

Differential Revision: D9797288

fbshipit-source-id: 8e29f2e6e2155ef6ddfa17466e6f29f6a1cfd243

facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex