# # # patch "migrate_ancestry.cc" # from [565d9351d0553d77e2d5d45ac495aaa46339adfd] # to [d24eba186d24fdba6d66cca44fdc455a5af3795c] # ============================================================ --- migrate_ancestry.cc 565d9351d0553d77e2d5d45ac495aaa46339adfd +++ migrate_ancestry.cc d24eba186d24fdba6d66cca44fdc455a5af3795c @@ -195,7 +195,13 @@ void anc_graph::write_certs() for (set::const_iterator i = branches.begin(); i != branches.end(); ++i) { char buf[constants::epochlen_bytes]; - keys.get_rng().randomize(reinterpret_cast(buf), constants::epochlen_bytes); +#if BOTAN_VERSION_CODE >= BOTAN_VERSION_CODE_FOR(1,7,7) + keys.get_rng().randomize(reinterpret_cast(buf), + constants::epochlen_bytes); +#else + Botan::Global_RNG::randomize(reinterpret_cast(buf), + constants::epochlen_bytes); +#endif epoch_data new_epoch(string(buf, buf + constants::epochlen_bytes), origin::internal); L(FL("setting epoch for %s to %s")