R/random_hash.R

Defines functions random_hash

Documented in random_hash

#' random_hash
#'
#' Generates a random hash
#'
#' @export
#'
random_hash <- function() {
  tmp <- format(Sys.time(), "%Y%m%d%H%M%S%OS3") %>%
    as.numeric() * stats::runif(1, 1, 1000000)

  tmp %>%
    as.character() %>%
    openssl::sha1()
}

Try the rDataPipeline package in your browser

Any scripts or data that you put into this service are public.

rDataPipeline documentation built on Nov. 18, 2021, 1:14 a.m.