Fix random number generation
Fix size determination for assembler constants