Repair a verified behavior in rt-thread/rt-thread.
Repair a verified behavior in rt-thread/rt-thread.: a task in OriGent-RL-Data (Harbor dataset). The RT-Thread random device driver (components/drivers/misc/rt random.c) registers the character devices "random" and "urandom", which serve a pseudo-random byte stream. The read path of both devices…
The task
The RT-Thread random device driver (components/drivers/misc/rt_random.c) registers the character devices "random" and "urandom", which serve a pseudo-random byte stream. The read path of both devices ignores the caller's requested read size: every read computes a single 16-bit pseudo-random value, copies only those 2…
Part of henryen/OriGent-RL-Data.