Rating:

tl;dr: middle-square prng

Original writeup (https://dunsp4rce.github.io/rgbCTF-2020/misc/2020/07/16/Ye-Old-PRNG.html).