JavaScript Restrictor
Browser extension that improves privacy and security
wrappingL-SENSOR.js File Reference

Library of functions for the Generic Sensor API wrappers. More...

Functions

function sen_prng ()
 
function sen_generateAround (number, tolerance)
 

Variables

var sensorapi_prng_functions
 

Detailed Description

Library of functions for the Generic Sensor API wrappers.

See also
https://www.w3.org/TR/magnetometer/
Author
Copyright (C) 2021 Radek Hranicky
License:
SPDX-License-Identifier: GPL-3.0-or-later

Supporting fuctions for Generic Sensor API Wrappers

Function Documentation

◆ sen_generateAround()

function sen_generateAround (   number,
  tolerance 
)
Here is the caller graph for this function:

◆ sen_prng()

function sen_prng ( )
Here is the caller graph for this function:

Variable Documentation

◆ sensorapi_prng_functions

var sensorapi_prng_functions
Initial value:
= `
function sen_generateSeed(s) {
var h;
for(var i = 0, h = 1779033703 ^ s.length; i < s.length; i++)
h = Math.imul(h ^ s.charCodeAt(i), 3432918353),
h = h << 13 | h >>> 19;
return h;
}
var sen_seed = sen_seed ||
((typeof domainHash === 'undefined') ?
sen_generateSeed(Hashes.sessionHash) :
sen_generateSeed(domainHash))
var Hashes
Definition: session_hash.js:30