4 ms·
Need some sort of deterministic bias based on user ID? Each user offset 1*Math.rand(hashseed) miles from location at randVector(hashseed)
by cwkoss 8y ago
Need some sort of deterministic bias based on user ID? Each user offset 1*Math.rand(hashseed) miles from location at randVector(hashseed)
- pavel_lishin 8y agoWhy does it have to be deterministic per-user? Why not completely randomized across every user?
- cwkoss 8y agoI guess depends on the application. Consistent offset would allow measurement of distances, but that does leak some information, so perhaps all-random is better for many uses.