Skip to main content

boot_seed

Function boot_seed 

Source
fn boot_seed() -> u64
Expand description

乱数の種(起動ごとに変える)。現在時刻(秒)と起動からの経過(マイクロ秒)を混ぜる。

【2026-11-12】以前は種が固定の定数で、Math.random・crypto.getRandomValues・crypto.randomUUID が 起動のたびに同じ列を返していた(YouTube の再生の識別子・訪問者の識別子が毎回同じになる)。 暗号用の乱数源ではない(予測できる)。TLS の鍵には使っていない。