Revert "made get_random_bits to use insecure rand() instead of uninitialized memory"

This reverts commit 1d0390946c2b78b4e5788f673ed833a17a90de7e.
Revert "changed get_random_bits to return whatever is in memory, instead of actual random bits"

This reverts commit 79eaca3cb4bc85a56ea95166415c77b73d3eed0c.