A classic result on the way to the Lagrange Four Squares theorem — for instance proven by Theorem 87 of Hardy & Wright, as noted by this remark on the Four Squares theorem — is that for odd primes $N$ there are solutions $0 \leqslant x,y < N$ to $$ 1 + x^2 + y^2 \equiv 0 \pmod{N}. $$ It follows that there are solutions for arbitrary composite $N$ odd as well, by the Chinese Remainder Theorem. Other combinatorial results imply that for primes $N \ne 5$, one may require $x,y > 0$; so that in the case of $N$ composite but coprime to $30$ one may require $x$ and $y$ to be coprime to $N$.
Can one construct — deterministically, and in time $O(\mathop{\mathrm{polylog}} N)$ — such a pair $0 < x,y < N$ for arbitrary $N$ coprime to 10 (that is, only having odd prime factors $\ne 5$)? If so, how?