fixed generating salt