All pastes #444701 Raw Edit

Unnamed

public c v1 · immutable
·published 2007-04-17 13:29 UTC
rendered paste body
#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>int main(void){        int deskr, i;        unsigned int tal;        char buf[10];        deskr = open("/dev/urandom", O_RDONLY);        read(deskr, buf, 10);        close(deskr);        for (i=0; i<10; i++)        {                tal = buf[i];                tal = (tal%11);                printf("Talet: %d\n", tal);                sleep(1);        }}