use random number in shared file name (#72232)
Summary:
A tentative fix for https://github.com/pytorch/pytorch/issues/67864
Pull Request resolved: https://github.com/pytorch/pytorch/pull/72232
Reviewed By: mruberry
Differential Revision: D33966413
Pulled By: ngimel
fbshipit-source-id: 8204c2bf6cc3c5722f8e54652d7be257355162c2
(cherry picked from commit 2af7cfcf4e1934e0867cae6f98d4a87e0f35f5a1)