]> Pileus Git - ~andy/rsl/blobdiff - examples/killer_sweep.c
Build fixes for win32
[~andy/rsl] / examples / killer_sweep.c
index d70766c84a347c1b4b0f96901e284fc310b87c7f..4ad518b90d434aea5ae85c84b4b3e8d1f6294777 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "rsl.h"
 #include <stdlib.h>
+#include <limits.h>
 void print_link_list(Azimuth_hash *list)
 {
   if (list == NULL) {
@@ -84,9 +85,7 @@ void poke_about_sweep(Sweep *s)
 
 float random_azim(void)
 {
-  double drand;
-  drand = drand48()*1;
-  return (float)drand;
+  return (float)rand() / INT_MAX;
 }
 
 Sweep *permute_sweep(Sweep *sweep)