Skip to content

Instantly share code, notes, and snippets.

@bkilshaw
Created August 10, 2016 07:01
Show Gist options
  • Save bkilshaw/e9b1157b131a22d13a99db49fef85c20 to your computer and use it in GitHub Desktop.
Save bkilshaw/e9b1157b131a22d13a99db49fef85c20 to your computer and use it in GitHub Desktop.
if(!$request->session()->has('rand.key')) {
$request->session()->push('rand.key', rand());
}
$seed = $request->session()->get('rand.key');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment