Update 2024-03-27: Greatly expanded the "Samples" page and renamed it to "Glossary".
Update 2024-04-04: Added 5 million mid-2011 posts from the k47 post dump. Browse (mostly) them here.
Update 2024-04-07: Added ~400 October 2003 posts from 4chan.net. Browse them here.

Welcome to Oldfriend Archive, the official 4chan archive of the NSA. Hosting ~170M text-only 2003-2014 4chan posts (mostly 2006-2008).
[1 / 0 / ?]

[1375223865] Random MAC address

No.25386 View ViewReplyOriginalReport
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;
}