Skip to content

Commit

Permalink
Fix link.
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ivar committed Apr 27, 2020
1 parent 12ae9ec commit 92dcbad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions getusermedia.html
Expand Up @@ -3747,14 +3747,14 @@ <h2>Implementation Suggestions</h2>
used to decide which stream gets which media sources.</p>
</div>
<div class="practice">
<span class="practicelab" id="handling-devices">Generating deviceIds</span>
<span class="practicelab" id="generating-deviceids">Generating deviceIds</span>
<p class="practicedesc">An efficient practice for generating a
{{MediaDeviceInfo/deviceId}} is to generate a cryptographic hash from
a generated private key + (origin or origin + top-level origin, based
on the user agents' partitioning rules) + salt + device's underlying
(hardware) id in the driver, presented as an alphanumeric string. Using
32 bits or lower is recommended, but not much lower, to avoid risk of
collision.</p>
a private key + (origin or origin + top-level origin, based on the user
agents' partitioning rules) + salt + device's underlying (hardware) id
in the driver, presented as an alphanumeric string. Using 32 bits or
lower is recommended, but not much lower, to avoid risk of collision.
</p>
<p class="practicedesc">A better (lower-entropy) alternative, at the
cost storage, is to assign the numbers 0 through 255 randomly to each
new device encountered for each origin or origin + top-level origin,
Expand Down

0 comments on commit 92dcbad

Please sign in to comment.