Really I dont think it's being used:

```ruby
shellcode = rand_text(50)
shellcode = egg + egg
```

Finally shellcode = egg + egg. I don't think the rand_text is there anymore after the second line.