diff options
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r-- | src/pattern_sim.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index a1c72ef4..bcbefdf5 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -273,6 +273,16 @@ int main(int argc, char *argv[]) } + /* FIXME: Make this optional */ + if ( 1 ) { + FILE *fh; + unsigned int seed; + fh = fopen("/dev/urandom", "r"); + fread(&seed, sizeof(seed), 1, fh); + fclose(fh); + srand(seed); + } + if ( filename == NULL ) { filename = strdup("molecule.pdb"); } |