What does lightning do to sand?

It would create glass considering the heat of the lightning and that sand turns to glass when hot enough.