Skip to content

Is the reserved area handled correctly when generating a MUID? #14

Open
@RyoSusami

Description

@RyoSusami

sendDiscovery() in /libs/midici.js
this._muid = getRandomInt(0xFFFFF00);

getRandomInt() in /libs/utils.js
return Math.floor(Math.random() * Math.floor(max+1));

Does this mean the generated value will include 0x0FFFFF00 ?

On the other hand, the specifications...
https://amei.or.jp/midistandardcommittee/MIDI2.0/MIDI2.0-DOCS/M2-101-UM_v1-2_MIDI-CI_Specification.pdf
3.3 MIDI-CI MUID
The values 0x0FFFFF00 to 0x0FFFFFFE are reserved.

0x0FFFFF00 looks like it should not be used.

Please ignore if I misunderstood. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions