# Uploaded samtools version 0.1.14-1.
[samtools.git] / bam_aux.c
index fbcd9822b233dab64f6c861fb332846acb951ce7..4fd3190a73799c6fd68257cc8c1125a017dc4860 100644 (file)
--- a/bam_aux.c
+++ b/bam_aux.c
@@ -180,3 +180,10 @@ char *bam_aux2Z(const uint8_t *s)
        if (type == 'Z' || type == 'H') return (char*)s;
        else return 0;
 }
+
+#ifdef _WIN32
+double drand48()
+{
+       return (double)rand() / RAND_MAX;
+}
+#endif