From 0517cc20aa5b04da4244ebb5fdfd77d3fdf45cdd Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 18 May 2019 15:43:58 -0400 Subject: [PATCH] Fix return values of deprecated random*() functions in rack0.hpp. --- helper.py | 2 +- include/rack0.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helper.py b/helper.py index ffc65087..e67fa54f 100755 --- a/helper.py +++ b/helper.py @@ -198,7 +198,7 @@ def create_module(slug, panel_filename=None, source_filename=None): module_manifest['slug'] = slug module_manifest['name'] = input_default("Module name", slug) module_manifest['description'] = input_default("One-line description (optional)") - tags = input_default("Tags (comma-separated, case-insensitive, see https://github.com/VCVRack/Rack/blob/v1/src/plugin.cpp#L543 for list)") + tags = input_default("Tags (comma-separated, case-insensitive, see https://github.com/VCVRack/Rack/blob/v1/src/plugin.cpp#L511-L571 for list)") tags = tags.split(",") tags = [tag.strip() for tag in tags] if len(tags) == 1 and tags[0] == "": diff --git a/include/rack0.hpp b/include/rack0.hpp index 02f4a9dd..64f2c4a1 100644 --- a/include/rack0.hpp +++ b/include/rack0.hpp @@ -51,8 +51,8 @@ DEPRECATED inline void cmultf(float *cr, float *ci, float ar, float ai, float br // random //////////////////// -DEPRECATED inline float randomu32() {return random::u32();} -DEPRECATED inline float randomu64() {return random::u64();} +DEPRECATED inline uint32_t randomu32() {return random::u32();} +DEPRECATED inline uint64_t randomu64() {return random::u64();} DEPRECATED inline float randomUniform() {return random::uniform();} DEPRECATED inline float randomNormal() {return random::normal();} DEPRECATED inline float randomf() {return random::uniform();}