diff options
| author | Tyge Løvset <[email protected]> | 2022-10-28 09:42:50 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-10-28 09:42:50 +0200 |
| commit | 0243b64f830f55b924274cbc63f5dd1ed518c26f (patch) | |
| tree | 5db964f8eab0483feb4a695eed20adda75612554 /include/stc/crandom.h | |
| parent | 7f03a0a99daaa3df326f2904091affe55e910156 (diff) | |
| download | STC-modified-0243b64f830f55b924274cbc63f5dd1ed518c26f.tar.gz STC-modified-0243b64f830f55b924274cbc63f5dd1ed518c26f.zip | |
Renamed semi-internal macro (used for c++ compability) c_make => c_init.
Diffstat (limited to 'include/stc/crandom.h')
| -rw-r--r-- | include/stc/crandom.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/crandom.h b/include/stc/crandom.h index 49f6d3ae..b46c0430 100644 --- a/include/stc/crandom.h +++ b/include/stc/crandom.h @@ -100,12 +100,12 @@ STC_INLINE double stc64_uniformf(stc64_t* rng, stc64_uniformf_t* dist) { /* Init uniform distributed float64 RNG, range [low, high). */ STC_INLINE stc64_uniformf_t stc64_uniformf_new(double low, double high) { - return c_make(stc64_uniformf_t){low, high - low}; + return c_init(stc64_uniformf_t){low, high - low}; } /* Marsaglia polar method for gaussian/normal distribution, float64. */ STC_INLINE stc64_normalf_t stc64_normalf_new(double mean, double stddev) { - return c_make(stc64_normalf_t){mean, stddev, 0.0, 0}; + return c_init(stc64_normalf_t){mean, stddev, 0.0, 0}; } /* -------------------------- IMPLEMENTATION ------------------------- */ |
