Skip to content

Instantly share code, notes, and snippets.

Kian Lavi kianlavi

Block or report user

Report or block kianlavi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kianlavi / HashHouse.swift
Created Apr 28, 2016
Create a random hash of length(x)
View HashHouse.swift
// HashHash: make some random numbers, randomly.
import UIKit
func newString(length: Int) -> String {
let allowed = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
// uncomment this if you want all numbers
// let allowed = "1234567890"
let allowedCount = UInt32(allowed.characters.count)
You can’t perform that action at this time.