Skip to content

Commit acda02d

Browse files
authored
cherrypick #50805 (#50832)
for windows test issue. Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
1 parent bece652 commit acda02d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ray/raylet/scheduling/cluster_resource_scheduler_test.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ NodeResourceSet RandomNodeResourceSet() {
9494
ResourceID("custom2")};
9595
NodeResourceSet resource_set;
9696
for (auto &id : ids) {
97-
unsigned int seed = static_cast<unsigned int>(time(nullptr));
98-
if (rand_r(&seed) % 3 != 0) {
97+
if (rand() % 3 != 0) {
9998
resource_set.Set(id, rand() % 10);
10099
}
101100
}

0 commit comments

Comments
 (0)