diff options
| author | Selene ToyKeeper | 2023-11-03 11:17:34 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-11-03 11:17:34 -0600 |
| commit | 481634c860e76159852c4e6f6de92905028a9e4e (patch) | |
| tree | cdadbceb57769181885bce23a2abe4b51ea4e6d4 /arch/random.h | |
| parent | renamed tk*.h to arch/*.h or fsm/*.h (part 1) (diff) | |
| download | anduril-481634c860e76159852c4e6f6de92905028a9e4e.tar.gz anduril-481634c860e76159852c4e6f6de92905028a9e4e.tar.bz2 anduril-481634c860e76159852c4e6f6de92905028a9e4e.zip | |
renamed tk*.h in file contents, and deleted unused files
Diffstat (limited to '')
| -rw-r--r-- | arch/random.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/random.h b/arch/random.h deleted file mode 100644 index ad65660..0000000 --- a/arch/random.h +++ /dev/null @@ -1,14 +0,0 @@ -// tk-random.h: Smaller pseudo-random function(s). -// Copyright (C) 2015-2023 Selene ToyKeeper -// SPDX-License-Identifier: GPL-3.0-or-later -#pragma once - -uint8_t pgm_rand() { - static uint16_t offset = 255; - // loop through ROM space, but avoid the first 256 bytes - // because the beginning tends to have a big ramp which - // doesn't look very random at all - offset = ((offset + 1) & 0x3ff) | 0x0100; - return pgm_read_byte(offset); -} - |
