MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / generateRandomUniquePluginId

Function generateRandomUniquePluginId

Source/Core/CtrlrUtilities.cpp:334–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334const String generateRandomUniquePluginId()
335{
336 String ret;
337
338 static const char alphanum[] =
339 "0123456789"
340 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
341 "abcdefghijklmnopqrstuvwxyz";
342
343 for (int i = 0; i < 4; ++i)
344 {
345 ret << alphanum[rand() % (sizeof(alphanum) - 1)];
346 }
347
348 return (ret);
349}
350
351int getMidiNumberFromModulator(CtrlrModulator *m, const CtrlrMIDIDeviceType source)
352{

Callers 4

setBundleInfoMethod · 0.85
CtrlrPanelMethod · 0.85
getPanelInstanceIDMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected