projects
/
samtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'upstream/0.1.13'
[samtools.git]
/
bam_aux.c
diff --git
a/bam_aux.c
b/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;
}
if (type == 'Z' || type == 'H') return (char*)s;
else return 0;
}
+
+#ifdef _WIN32
+double drand48()
+{
+ return (double)rand() / RAND_MAX;
+}
+#endif