Skip to content

Instantly share code, notes, and snippets.

View gtklocker's full-sized avatar

Kostis Karantias gtklocker

View GitHub Profile
@gtklocker
gtklocker / password.cpp
Created August 3, 2012 19:29
Password Generator
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <cassert>
int main( int argv, char *argc[] ) {
assert( argv > 1 );
const int N = atoi( argc[ 1 ] ); // Password length
char i, randChar;