[1 / 0 / ?]
Quoted By:
Thought this might be useful. Enjoy.
#include <stdio.h>
#include <stdlib.h>
main () {
printf("Starting generation sequence!\n");
int i,tp;
srand(time(NULL) + getpid());
printf("\nYour generated MAC address is: ");
printf("00:");
for (i=0; i<5 && (tp=rand()%32) > -1; i++) printf("%s%X%s",
tp<16 ? "0" : "",
tp,
i<4 ? ":" : "\n");
return 0;
}