8 #include <botan/internal/es_beos.h>    10 #include <kernel/OS.h>    11 #include <kernel/image.h>    12 #include <interface/InterfaceDefs.h>    19 void BeOS_EntropySource::poll(Entropy_Accumulator& accum)
    22    get_system_info(&info_sys);
    23    accum.add(info_sys, 2);
    26    get_key_info(&info_key);
    27    accum.add(info_key, 0);
    30    int32 cookie_team = 0;
    32    while(get_next_team_info(&cookie_team, &info_team) == B_OK)
    34       accum.add(info_team, 2);
    36       team_id 
id = info_team.team;
    40       while(get_next_thread_info(
id, &cookie, &info_thr) == B_OK)
    41          accum.add(info_thr, 1);
    45       while(get_next_image_info(
id, &cookie, &info_img) == B_OK)
    46          accum.add(info_img, 1);
    50       while(get_next_sem_info(
id, &cookie, &info_sem) == B_OK)
    51          accum.add(info_sem, 1);
    55       while(get_next_area_info(
id, &cookie, &info_area) == B_OK)
    56          accum.add(info_area, 2);
    58       if(accum.polling_goal_achieved())