inject fresh entropy on every restart
@@ -1293,6 +1293,18 @@ _pier_loop_wake(u3_pier* pir_u)
{
c3_l cod_l;
+ // inject fresh entropy
+ //
+ {
+ c3_w eny_w[16];
+ c3_rand(eny_w);
+
+ u3_noun wir = u3nt(u3_blip, c3__arvo, u3_nul);
+ u3_noun car = u3nc(c3__wack, u3i_words(16, eny_w));
+
+ _pier_writ_insert_ovum(pir_u, 0, u3nc(wir, car));
+ }
+
cod_l = u3a_lush(c3__unix);
u3_unix_io_talk(pir_u);
u3_unix_ef_bake(pir_u);
@@ -1510,8 +1522,6 @@ _pier_boot_vent(u3_boot* bot_u)
// prepend entropy to the module sequence
//
- // XX also copy to _pier_loop_wake?
- //
{
c3_w eny_w[16];
c3_rand(eny_w);
