]> hackdaworld.org Git - physik/morpheus.git/blobdiff - random.c
z relaxation, fixed bug in random.c
[physik/morpheus.git] / random.c
index f9a88f5abc58da46f74bd957585776df28b26335..81a066752eb3d1de6fa0f71ef72c9b9e0c8b5c42 100644 (file)
--- a/random.c
+++ b/random.c
@@ -26,7 +26,7 @@ u32 rand_get(u32 max)
   printfd("debug: reading new random bytes\n");
   if(read(random_fd,rand_buf,RAND_BUF_SIZE)!=RAND_BUF_SIZE)
   {
-   if(!strcmp(random_file,""))
+   if(strcmp(random_file,""))
    {
     puts("random file end, starting over ...");
     lseek(random_fd,0,SEEK_SET);