X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam_aux.c;h=4fd3190a73799c6fd68257cc8c1125a017dc4860;hb=af978924134085b4bfba8ddca5f69100612c1f76;hp=fbcd9822b233dab64f6c861fb332846acb951ce7;hpb=51ffe3e1edb69af534dea8137d56455b1248f740;p=samtools.git diff --git a/bam_aux.c b/bam_aux.c index fbcd982..4fd3190 100644 --- 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