fix randombytes_{random,uniform}

* these functions return `int` and, therefore, do not have `.raw`
  attribute
* add a positive test cases for each