# Fix flaky terminal test for position / cell conversion \(\#52351\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4c3179f2e2863ddaccecbf2cbb2069134f29334b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4c3179f2e2863ddaccecbf2cbb2069134f29334b

Requested commit: 4c3179f2e2863ddaccecbf2cbb2069134f29334b

Commit: 4c3179f2e2863ddaccecbf2cbb2069134f29334b

Tree: c2d25ad7906c86a5775f36c93dd458eca13e68da

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix flaky terminal test for position / cell conversion (#52351)

This PR fixes test flakiness introduced in
https://github.com/zed-industries/zed/pull/52111

The flakiness was because the test was using its own RNG, rather than
using gpui's built-in support for consistently-seeded RNGs in tests. The
fix was just to adjust the test to use the same logic for computing row
and column count as was introduced in the above PR.

Release Notes:

- N/A
```

## Parents

- [5d8c09e62635e0348a4ab560b85ae7e9514fb9d1](https://git.cafe/gitcafe/zed/commit/5d8c09e62635e0348a4ab560b85ae7e9514fb9d1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4c3179f2e2863ddaccecbf2cbb2069134f29334b?format=markdown)
