Catsum is random cat images generator. Highly inspired with picsum.photo but only focused to Cat Photo.
All images are received from flickr api, and stored in single csv file so I dont need to take care of api rate limit from flickr api. Images processing like crop, blur, grayscaling, and format converter are done by Imgix.
To generate random image based on seed, I use 32bit xorshift RNG, and manipulate each char code of seed chars to initial state of RNG. Each Request will using diffrent RNG, and create new one.
Below is small 32bit xorshift I used
function xorshift(n: number) {
n ^= n << 13;
n ^= n >>> 17;
n ^= n << 5;
return n;
}
function xorshift(n: number) {
n ^= n << 13;
n ^= n >>> 17;
n ^= n << 5;
return n;
}
Visit https://catsum.falentio.my.id to see what catsum do