UNPKG

@derin-n/provablyfair

Version:
3 lines 244 B
//this will run in the browser, using the SubtleCrypto interface const randomString = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); const digest = await crypto.subtle.digest("SHA-512", randomString);