Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert :: color change in rust #356

Closed
JMS55 opened this issue Nov 19, 2019 · 4 comments
Closed

Revert :: color change in rust #356

JMS55 opened this issue Nov 19, 2019 · 4 comments
Labels

Comments

@JMS55
Copy link

JMS55 commented Nov 19, 2019

Previously :: was grey, and now it's blue which looks really out of place.

@Binaryify
Copy link
Owner

could you provide some code and screenshots?

@JMS55
Copy link
Author

JMS55 commented Nov 21, 2019

image

pub struct LCRNG {
    seed: u32,
    multiplier: u64,
    adder: u64,
}

impl LCRNG {
    pub fn new_emerald(seed: u32) -> Self {
        Self {
            seed,
            multiplier: 0x41C64E6D,
            adder: 0x6073,
        }
    }

    pub fn next_u16(&mut self) -> u16 {
        self.seed = (u64::from(self.seed) * self.multiplier + self.adder) as u32;
        (self.seed >> 16) as u16
    }

    pub fn next_u32(&mut self) -> u32 {
        self.seed = (u64::from(self.seed) * self.multiplier + self.adder) as u32;
        self.seed
    }
}

@Binaryify Binaryify added the bug label Nov 22, 2019
Binaryify added a commit that referenced this issue Nov 24, 2019
…pen changelog button on notification in the bottom right corne Support commands to set/cancel bold italic vivid
@Binaryify
Copy link
Owner

just release a new version, you can check if it fixed now

@JMS55
Copy link
Author

JMS55 commented Nov 24, 2019

Fixed, thank you!

@JMS55 JMS55 closed this as completed Nov 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants