Files
OmniRoute/open-sse
Diego Rodrigues de Sa e Souza ceff7054b1 fix(security): unbiased crypto digits for the doubao synthetic device id (CodeQL js/biased-cryptographic-random)
randomNumericId builds a non-secret synthetic device/web id. The v3.8.45 switch
to crypto.getRandomValues closed js/insecure-randomness but 'cryptoByte % 10' is
biased (256 is not a multiple of 10), tripping js/biased-cryptographic-random.
Draw each digit by rejection sampling — discard bytes in the biased tail so the
remaining range divides evenly — giving a uniform distribution (verified) while
staying crypto-backed.
2026-07-07 07:42:12 -03:00
..
2026-05-26 23:51:47 -03:00
2026-06-29 08:40:06 -03:00
2026-07-06 02:25:17 -03:00
2026-06-12 23:49:22 -03:00
2026-06-29 08:40:06 -03:00