Just doing some boundary tests for C_SeedRandom and C_GenerateRandom. I noticed that if you provide a zero length for the seed in C_SeedRandom or zero length for the RNG in C_GenerateRandom you get back CKR_OK. I was expecting CKR_ARGUMENTS_BAD.
Softhsm does correctly check for null pointers though.