Random points tool doesn't work with non-vector layes
The form of the tool allows all types of layers but the code expects only vector layers.
It should be possible to create random points for raster layers as well.
I updated the existing unit test for RandomPoints Tool and adding two new ones.
A raster file is now used as an input file, as well as a shapefile and a test is added to use only the selected features of a shapefile.
I can confirm this fix. It is working as expected now.
A fix is committed. There was one more newly introduced issue with passing Selected only flag, fixed as well.