mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
frand48
This commit is contained in:
@@ -176,4 +176,11 @@ test_eq_th(float a, float b, float th) {
|
||||
return fabsf(a - b) <= th;
|
||||
}
|
||||
|
||||
/* drand with explicit conversion to lower precision */
|
||||
CGLM_INLINE
|
||||
float
|
||||
frand48(void) {
|
||||
return (float)drand48();
|
||||
}
|
||||
|
||||
#endif /* test_common_h */
|
||||
|
||||
Reference in New Issue
Block a user