We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
2026-02-08
Because she is the best girl around ofcourse
anyways did you known that your computer literraly has random shit build in here is a c file to play around with it and write it to ppm file
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <string.h>
#define BUFFSIZE 3
int main(int argc, char *argv[]){
int fd_rand = open("/dev/urandom",O_RDONLY);
int fd_writer = open("/Users/spohl/dev/priv/c/random_dev/out.ppm", O_WRONLY | O_CREAT | O_TRUNC,
0644);
char buf[BUFFSIZE] = {0};
const char* header = "P3\n500 500\n255\n";
write(fd_writer,header,strlen(header));
for(int i = 0; i < 500*500; i++) {
read(fd_rand, &buf, BUFFSIZE);
char out[64];
int n = snprintf(out, sizeof(out),
"%u %u %u\n",
(unsigned char)buf[0],
(unsigned char)buf[1],
(unsigned char)buf[2]);
if (n > 0) {
write(fd_writer, out, n);
}
}
return 0;
}
pretty neat right